I am trying to add a datasource to my visual studio project, however it always gives me an error:
Column 'TABLE_CAT' does not belong to table Tables.
I get the same error in both vs2005 and vs2010. From what I have read, this error is caused by ODBC drivers that are not ODBC 3.0 compliant, however according to Sybase, the driver I have is odbc3.0 compatible. (I have version 10.10.00.28).
As a side note, I can query the database fine. I just can not create a data source.
Here is an image of the error:
Thanks for your help.
EDIT:
Here are the steps I took:
I have also tried the 32-bit driver, the .Net Data Provider, and trying to 'Connect To Database' instead of adding a data source in VS. All give me the same error. However, I can query just fine, and if I use the connection string in a C# app, it works fine.
The problem that you are experiencing is in the ODBC driver that you are using. Visual Studio 2005 connects to ODBC data sources that support the ODBC 3.0 api and in particular implement the SQLInfo methods. Your manifestations in your problem report indicate that your driver is either downlevel (i.e. pre 3.0) or that some of the optional ODBC features are not implemented.
ODBC 2.0 backwords compatibility should be provided. Or a way to select ODBC 2.0 should be provided as an alternative to ODBC 3.0 Here are links to a few of the others that have reported this same problem:
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With