Results 1 to 5 of 5

Thread: Adding DSN programmaticly - resolved

Threaded View

  1. #1

    Thread Starter
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747

    Adding DSN programmaticly - resolved

    SQLConfigDataSource(0, ODBC_ADD_SYS_DSN, "MySQL ODBC 3.51 Driver", "DSN=MySQLTesting" & Chr(0)
    & "SERVER=myServer.com.au" & Chr(0) & "DATABASE=testing" & Chr(0) &
    "OPTION=" & (1 + 2 + 8 + 32 + 2048 + 16384) & Chr(0) & "UID=username" & Chr(0)
    & "PORT=3306" & Chr(0)
    & "DESCRIPTION=someDesc" & Chr(0))


    It returns 1 ie succesful, yet i cant see it my ODBC datasources list (through administritive options)

    help!?
    Last edited by SkiNLaB; Jun 16th, 2003 at 11:36 PM.

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