dbTalk Databases Forums  

Migrating ASA 9.03 to SQLAnyWhere 11.0.1

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Migrating ASA 9.03 to SQLAnyWhere 11.0.1 in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark
 
Posts: n/a

Default Migrating ASA 9.03 to SQLAnyWhere 11.0.1 - 08-25-2009 , 06:53 AM






Hello all...I am migrating our Sybase ASA databases from ASA
9.03 to SQLAnyWhere 11.0.1. I have noticed that I must use
double quotes in columns which are reserved words in order
to prevent any syntax errors when executing the SQL. This
works quite well in ISQL 11.0.1 but when I try to use the
double quotes in datawindow object, say:

SELECT "opinions"."opinion_number",
"opinions"."date_recieved",
"opinions"."from",
"opinions"."responsible_attorney_id",
"opinions"."date_of_response"
FROM "opinions"

and I try to do an INSERT through the datawindow painter it
fails and says:
SQLSATE = 37000
[Sybase][ODBC Driver][SQL Anywhere] Syntax error near 'from'
on line 1

The INSERT statement works quite well in ISQL 11.0.1 but
when I try to insert through the PowerBuilder dwo, it
generates the above statement. Any clue as to what might be
causing this problem within PowerBuilder?

Reply With Quote
  #2  
Old   
MWietscher
 
Posts: n/a

Default Re: Migrating ASA 9.03 to SQLAnyWhere 11.0.1 - 08-25-2009 , 07:17 AM






In the PowerBuilder "Database Profile Setup ODBC", have you tried to
set "Enclose Table and Column Names in Quotes" to checked and user
double quote (") as "Identifier Quote Char"? At least this works for
me, if i use different dbms than SQL Anyhwere.

Marc

Reply With Quote
  #3  
Old   
Mark
 
Posts: n/a

Default Re: Migrating ASA 9.03 to SQLAnyWhere 11.0.1 - 08-25-2009 , 08:25 AM



Marc, this works, the only problem is I need to still go
into the dwo and save it...

Quote:
In the PowerBuilder "Database Profile Setup ODBC", have
you tried to set "Enclose Table and Column Names in
Quotes" to checked and user double quote (") as
"Identifier Quote Char"? At least this works for me, if i
use different dbms than SQL Anyhwere.

Marc

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.