dbTalk Databases Forums  

Problems with VB.net Commandbuilder and SyBase 5.5 ODBC

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


Discuss Problems with VB.net Commandbuilder and SyBase 5.5 ODBC in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alf Kato Brandal
 
Posts: n/a

Default Problems with VB.net Commandbuilder and SyBase 5.5 ODBC - 05-02-2006 , 09:26 AM






Hello,

we are having a problem with our database application. We are trying to
build an update command with
commandbuilder, and we get the error

"Dynamic SQL generation for the UpdateCommand is not supported against a
SelectCommand that does not return any key column information"

The command we use is:

Dim _cmdb As Odbc.OdbcCommandBuilder = New
Odbc.OdbcCommandBuilder(m_adapter)
m_adapter.UpdateCommand = _cmdb.GetUpdateCommand

The adapters select command is a very simple "select customer_no, name from
customer;"

If I run the version 5.5 database through the ASA9 engine, and use ASA9 ODBC
connection, everything is fine. The tables all have key columns, but
for some tables it work, and for some tables it does not.

Can anyone help me?

Alf Kato



Reply With Quote
  #2  
Old   
Reg Domaratzki \(iAnywhere Solutions\)
 
Posts: n/a

Default Re: Problems with VB.net Commandbuilder and SyBase 5.5 ODBC - 05-02-2006 , 09:54 AM






I don't believe that the v5.5 ODBC Driver (which will be celebrating it's
10th birthday this year in September) was ODBC 3.0 compliant, which is
probably why you are running into problems. I would suggest using an ODBC
driver that was compiled in this millennium to get around your problem.

--
Reg Domaratzki, Sybase iAnywhere Solutions
Sybase Certified Professional - Sybase ASA Developer Version 8
Please reply only to the newsgroup

iAnywhere Developer Community : http://www.ianywhere.com/developer
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
ASA Patches and EBFs : http://downloads.sybase.com/swd/base.do
-> Choose SQL Anywhere Studio
-> Set filter to "Display ALL platforms IN ALL MONTHS"


"Alf Kato Brandal" <alf (AT) satpool (DOT) no> wrote

Quote:
Hello,

we are having a problem with our database application. We are trying to
build an update command with
commandbuilder, and we get the error

"Dynamic SQL generation for the UpdateCommand is not supported against a
SelectCommand that does not return any key column information"

The command we use is:

Dim _cmdb As Odbc.OdbcCommandBuilder = New
Odbc.OdbcCommandBuilder(m_adapter)
m_adapter.UpdateCommand = _cmdb.GetUpdateCommand

The adapters select command is a very simple "select customer_no, name
from
customer;"

If I run the version 5.5 database through the ASA9 engine, and use ASA9
ODBC
connection, everything is fine. The tables all have key columns, but
for some tables it work, and for some tables it does not.

Can anyone help me?

Alf Kato





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.