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:
- 1) Install Advantage ODBC Driver: (Both my computer and the server I am accessing are 64-bit)
- 2) Set up my ODBC Connection in Data Sources (ODBC)
- 3) In VS, Data Sources (on the left) -> Add New Data Source
- 4) Click "Database"
- 5) Click "DataSet"
- 6) Choose ODBC DataSource, choose 'myODBC', supply my login
- 7) Press 'Test Connection' -> It succeeds
- 8) Press Okay. Then I get the error.
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.