CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 1999
    Location
    Bangalore
    Posts
    60

    DSN less connection

    Hi all

    Is to possible to have a connection without specifying the DSN(ODBC).




  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: DSN less connection

    Yes use OLEDB

    dim cnn as ADODB.connection
    set cnn=new ADODB.connection
    with cnn
    .provider="SQLOLEDB"
    .CursorLocation = adUseServer
    .ConnectionTimeout = 0
    .ConnectionString="SERVER=whatever;uid=whatever;pwd=whatever" & _
    ";INITIAL CATALOG=whateverdatabase"
    .open
    end with



    SERVER is the server that your database is on
    INITIAL CATALOG is the database you want to connect to
    This is what I use for SQL SERVER the only thing that I don't like is that I now have to use ini files to change servers and databases




  3. #3
    Join Date
    Dec 1999
    Location
    Bangalore
    Posts
    60

    Re: DSN less connection

    I am using Paradox3.0 database. Where can I get OLEDB provider for Paradox.


    Thanks
    Venky


  4. #4
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: DSN less connection

    I'm sorry but I haven't a clue
    Try wherever you got your ODBC drivers from or search the net.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured