PC Review


Reply
Thread Tools Rate Thread

Problems with ODBC

 
 
Nijazi Halimaji
Guest
Posts: n/a
 
      6th Sep 2005
Hi folks

I've already posted this problem, but the description was not good enough.
So I try again.

In the datasources of the my computer I have created a odbc-datasource named
Test1.

The first test was in Access: So I made File-Import Data, then choosed
odbc-computer sources and selected my source named Test1. After this I was
able to select my table and everything works fine.

In Visual Studio I tried now with the wizard. So the way is the same like in
access, but when vs tries to load the tables following error is shown: "An
error occured while retrieving the information from the database: Column
'TABLE_CAT' does not belong to table Tables.

Whatever this mean, I don't know! I only know that this works in VB6 when I
use ADO with the same connection string, it works on access but It don't
work in Visual Studio .NET

Any Help?

Thanks alot

Nijazi Halimaji


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      6th Sep 2005
On Tue, 6 Sep 2005 15:03:06 +0200, "Nijazi Halimaji" <(E-Mail Removed)> wrote:

¤ Hi folks
¤
¤ I've already posted this problem, but the description was not good enough.
¤ So I try again.
¤
¤ In the datasources of the my computer I have created a odbc-datasource named
¤ Test1.
¤
¤ The first test was in Access: So I made File-Import Data, then choosed
¤ odbc-computer sources and selected my source named Test1. After this I was
¤ able to select my table and everything works fine.
¤
¤ In Visual Studio I tried now with the wizard. So the way is the same like in
¤ access, but when vs tries to load the tables following error is shown: "An
¤ error occured while retrieving the information from the database: Column
¤ 'TABLE_CAT' does not belong to table Tables.
¤
¤ Whatever this mean, I don't know! I only know that this works in VB6 when I
¤ use ADO with the same connection string, it works on access but It don't
¤ work in Visual Studio .NET
¤

OK, assuming the connection string is OK why don't you try using the DataReader to see if you
encounter the same error.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC driver shows in registry key but not under ODBC Administrator =?Utf-8?B?bG91XzE=?= Windows XP General 5 8th Dec 2005 09:27 PM
ODBC Call Failed with complete Connect string but not with ODBC only. =?Utf-8?B?QmV0YWNvbg==?= Microsoft Access Form Coding 1 19th Feb 2004 02:05 PM
Microsoft.Data.Odbc vs System.Data.odbc Andy Lee Microsoft C# .NET 0 13th Feb 2004 06:36 PM
ODBC ... Listing of ODBC connections. Cordt.Huneke@convergys.com Microsoft Windows 2000 Applications 0 21st Oct 2003 03:03 PM
ODBC reinstallation required opening ODBC administrator. Jose Forero Microsoft Windows 2000 0 3rd Oct 2003 08:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 PM.