HighTechTalks DotNet Forums  

Use of ODBC in C++ .NET

VC++.net microsoft.public.dotnet.languages.vc


Discuss Use of ODBC in C++ .NET in the VC++.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
nishi.hirve (AT) gmail (DOT) com
 
Posts: n/a

Default Use of ODBC in C++ .NET - 04-05-2006 , 12:29 AM






Hello,

I want to use postgreSQL database in my C++ .NET application but when I
try to connect to it, through connect to database, it is shows dialog
box as follows:

Unable to connect to database
It is possible to connect to SQL Server Desktop Engine Databases and
Microsoft Access databases with this version of visual studio.

Please tell me the solution.

Thanks in Advance,
Nishi


Reply With Quote
  #2  
Old   
Bruno van Dooren
 
Posts: n/a

Default RE: Use of ODBC in C++ .NET - 04-05-2006 , 01:56 AM






Quote:
Hello,

I want to use postgreSQL database in my C++ .NET application but when I
try to connect to it, through connect to database, it is shows dialog
box as follows:

Unable to connect to database
It is possible to connect to SQL Server Desktop Engine Databases and
Microsoft Access databases with this version of visual studio.

Please tell me the solution.
Which datasource and data provider did you select?
try using <other> for data source and '.NET framework data provider for
ODBC' for data provider.
if that doesn't work, are you sure that your DSN or connection string is
correct? or your login information?

try creating a DSN in control panel->administrative tools -> data sources
can you make a DSN there? if not then I think mySql is not installed or
configured correctly.

you can test the connection in the DSN configuration screen. if it works
there, then you should be able to use it as an ODBC data source in the
'connect to database tool' (with the correct name and password of course.

alternatively, you can also check on
microsoft.public.data.odbc or microsoft.public.dotnet.framework.odbcnet

I noticed that there are people there discussing mySql, so they can probably
help you with much more detail.

--

Kind regards,
Bruno.
bruno_nos_pam_van_dooren (AT) hotmail (DOT) com
Remove only "_nos_pam"



Reply With Quote
  #3  
Old   
nishi.hirve (AT) gmail (DOT) com
 
Posts: n/a

Default Re: Use of ODBC in C++ .NET - 04-07-2006 , 01:10 AM



thanks for your its working now.

Nishi


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.