PC Review


Reply
Thread Tools Rate Thread

ADO.net and VC++.net 2005

 
 
Maileen
Guest
Posts: n/a
 
      30th Oct 2005
Hi,

I'm writing a VC++.net 2005 application and i would like to use the ODBC
connector.

I would like to allow user to choose the DB he wants to have (MS SQL,
PostgreSQl, MySQL, Oracle,...) by choosing the write ODBC driver.
After that, i want to create a system DSN with information enter by user.

But how can i do that ?

i did not find something in OdbcConnection for creating a system DSN.
do you have some information regarding this topic ?

1. i would like to display all ODBC driver available (like that user can
choose
2. after chosing ODBC driver and setting up connectionstring data,
application should create a Systen DSN.

thanks for help.

Maileen
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
Guest
Posts: n/a
 
      1st Nov 2005
The DSN is largely a dead concept. All a DSN file is is the connection string
in a specific format. If you mean system or user DSN, which is this
information stored in the system, I am sure there are APIs to set that up.

There are also much better methods of generic data access than ODBC, unless
you will have to support an ODBC only data source (there are some, but most,
including most open source databases, have OLEDB providers). As ODBC is
slower, I would consider carefully whether it is the best way to go. It may
be, in your instance, but examine the choices.

To create a generic layer, whether ODBC or OLEDB, you can simply use
connection strings. There is no reason to create the additional overhead of a
DSN, at least not in the majority of applications, so you should also examine
this direction.

For system DSNs, if you are sure that is your correct direction, I would
look at the platform SDK, as there is likely an interface to store system
DSNs somewhere in the SDK.

This link shows how to do this in C++, but it is not a managed solution:
http://www.codeguru.com/Cpp/data/mfc...cle.php/c4345/

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


"Maileen" wrote:

> Hi,
>
> I'm writing a VC++.net 2005 application and i would like to use the ODBC
> connector.
>
> I would like to allow user to choose the DB he wants to have (MS SQL,
> PostgreSQl, MySQL, Oracle,...) by choosing the write ODBC driver.
> After that, i want to create a system DSN with information enter by user.
>
> But how can i do that ?
>
> i did not find something in OdbcConnection for creating a system DSN.
> do you have some information regarding this topic ?
>
> 1. i would like to display all ODBC driver available (like that user can
> choose
> 2. after chosing ODBC driver and setting up connectionstring data,
> application should create a Systen DSN.
>
> thanks for help.
>
> Maileen
>

 
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
any know issues in installing VB.NET 2005 Express, VS.NET 2005 Standard, SQL Server 2005 Express and SQL Server 2005 LeAnne Microsoft VB .NET 2 30th Dec 2005 11:27 AM
Free Copies of Visual Studio 2005 and SQL Server 2005 at Launch Tour HappyManMostly Microsoft Dot NET 8 5th Oct 2005 08:16 PM
Security programs 2005 - , Firewall programs 2005 -, Antivirus programs 2005 -, APPDEV DOT NET SECURITY, Linux Security and Firewall programs 2005 -, CiscoWorks ( CW ) Security programs 2005 - , futa Microsoft Access Security 3 2nd Mar 2005 04:04 AM
Security programs 2005 - , Firewall programs 2005 -, Antivirus programs 2005 -, APPDEV DOT NET SECURITY, Linux Security and Firewall programs 2005 -, CiscoWorks ( CW ) Security programs 2005 - , futa Anti-Virus 0 25th Feb 2005 01:30 PM
McAfee 2005 All In One, McAfee AntiSpyware V1.0 2005, McAfee Personal Firewall Plus V6.0 2005, McAfee QuickClean V5.0 2005, McAfee SpamKiller V6.0 2005, McAfee VirusScan V9.0 2005, new !, other code_fu Anti-Virus 0 1st Oct 2004 11:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:31 AM.