Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_database_setup thread: DSN-less connection to mySQL


Message #1 by selman@b... on Wed, 7 Mar 2001 18:35:47
Does anyone know the correct syntax for a DSN-less connection to mySQL? 

I've already downloaded the myODBC driver.



Am I going in the right direction with this:





  Dim con

  set con = Server.CreateObject("ADODB.Connection")

  con.ConnectionString = "Provider=?????????; Data Source=?????????"

  con.open

Message #2 by "Grant Davies" <webdev@i...> on Thu, 8 Mar 2001 07:21:39 +1000
Here is a connections string I put in an include.



Connects to mySQL database.



<%

strConn = "driver={MySQL};server=localhost;uid=????;pwd=????;database=????"

Set dbc = Server.CreateObject("ADODB.Connection")

dbc.Open strConn

%>



Regards

Grant



-----Original Message-----

From: selman@b... [mailto:selman@b...]

Sent: Wednesday, 7 March 2001 6:36 PM

To: ASP Database Setup

Subject: [asp_database_setup] DSN-less connection to mySQL





Does anyone know the correct syntax for a DSN-less connection to mySQL?

I've already downloaded the myODBC driver.



Am I going in the right direction with this:





  Dim con

  set con = Server.CreateObject("ADODB.Connection")

  con.ConnectionString = "Provider=?????????; Data Source=?????????"

  con.open




  Return to Index