Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: DBI:Sybase - Period in database name

by apu (Novice)
on Feb 23, 2013 at 02:13 UTC ( #1020268=note: print w/replies, xml ) Need Help??


in reply to Re: DBI:Sybase - Period in database name
in thread DBI:Sybase - Period in database name

  $DBNAME = $dbh->quote_identifier( $DBNAME );
  $dbh->do("use $DBNAME");
results in
   DBD::Sybase::db do failed: Server message number=170
   severity=15 state=1 line=1 server=SQLSERVER
   text=Line 1: Incorrect syntax near 'ps_inventory.ad'.

(I did throw some additional debugging in there temporarily and it is quoting the $DBNAME but DBD::Sybase is still throwing the error.)

  • Comment on Re^2: DBI:Sybase - Period in database name

Replies are listed 'Best First'.
Re^3: DBI:Sybase - Period in database name
by Anonymous Monk on Feb 23, 2013 at 07:49 UTC
    what does sybase manual say about quoting database names? about error (number 170) ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2016-08-30 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.