DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Ramana Guest

    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



  2. #2
    Randy Charles Morin Guest

    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
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links