-
How to create datasource in VC++ program?
Dear All,
How to create Datasource , how to map to the perticuler database(.mdb file),
this is thru writting code, not like thru the control panel.
thank you
ramana
-
Re: How to create datasource in VC++ program?
Here's an example of a DSN-less connection string.
ADODB::_ConnectionPtr connection(__uuidof( ADODB::Connection));
connection->Open(L"driver={SQL
Server};server=servername;database=databasename;"
L"UID=userid;PWD=password", L"", L"", ADODB::adConnectUnspecified);
--
Randy Charles Morin
Author of Programming Windows Services
http://www.kbcafe.com
Feel free to contact me by private email or messenger
MSN Messenger - morin_randy@hotmail.com
Yahoo Messenger - randymorin@yahoo.com
"Ramana" <gvramana@uk2.net> wrote in message
news:3b36c1b9$1@news.devx.com...
>
>
>
> Dear All,
>
> How to create Datasource , how to map to the perticuler database(.mdb
file),
> this is thru writting code, not like thru the control panel.
>
> thank you
> ramana
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks