Results 1 to 5 of 5

Thread: dsn

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    dsn

    Hi

    I calling crystal report into vb6
    for that i want to create the dsn from system
    Can anybody help how to create dsn from vb6.

    'connection to database for entry moudle
    Public Sub Data_connect()
    Dim loadMdb As String
    loadMdb = App.Path & "\gold.mdb"
    Set Conect_Database = New ADODB.Connection
    Conect_Database.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" & loadMdb 'Without Password
    'Conect_Database.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" & loadMdb & ";Jet OLEDBatabase Password=SKM;" 'With password (skm)
    Conect_Database.Open
    End Sub


    Thanks

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: dsn

    You don't need it if you are using ADO with Access.
    You can open MDB files directly.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: dsn

    Are you looking to create a DSN or USE a DSN?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: dsn

    I want to create a dsn through vb code.
    (for SQL Server 2000 & Access2000)


    thanks

  5. #5
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: dsn

    Quote Originally Posted by asm
    I want to create a dsn through vb code.
    (for SQL Server 2000 & Access2000)


    thanks
    Quick search on http://groups.google.com/groups?q=vb+create+dsn

    with this nice link.
    http://support.microsoft.com/Default.aspx?id=184608

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