Results 1 to 4 of 4

Thread: MsSQL database connection with VB6 using DAO

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    MsSQL database connection with VB6 using DAO

    how do i connect, open and update records in an SQL database using VB6 and DAO?

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    Re: MsSQL database connection with VB6 using DAO

    had an application running on DAO in MsAccess but will certainly change to ADO.
    thanx

  4. #4
    Junior Member
    Join Date
    Nov 2006
    Posts
    22

    Re: MsSQL database connection with VB6 using DAO

    thes Code To Connect In Ado
    VB Code:
    1. Dim cn As New ADODB.Connection
    2. Dim X As String
    3. X = "Provider=MSDASQL;DRIVER=MySQL ODBC 3.51 Driver;Server=localhost;database=agc;Option=16387"
    4. cn.ConnectionString = X
    5. cn.Open

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