Re: Connection to vc++

Peter Harvey <[email protected]>
Newsgroups gmane.comp.db.mysql.odbc
Message-ID <[email protected]>
Nayak, Amit wrote:
> Hi I am a rookie at both vc++ and mysql..could you please guide me on
> how do I establish a connection between the two is a simple manner.
>
> Thanks,
> Amit
>
>   
You basically have the choice of connecting you using a Data Source Name 
(DSN) or connecting without one. The advantage of using a DSN is that 
the connection information can change without having to change 
application code.

If you want to use a DSN then look for information on SQLConnect().

If you do NOT want to use a DSN then look for information on 
SQLDriverConnect().

There are 2 other ways but they are less popular.

see...

http://dev.mysql.com/doc/refman/4.1/en/myodbc-connector.html
http://msdn2.microsoft.com/en-us/library/ms710252.aspx


--
Peter





-- 
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.