Requires Free Membership to View
You can connect ASP pages to MySQL using ODBC. Download the ODBC drivers. Once you have MyODBC configured, you can connect to MySQL with or without DSN.
Using DSN:
<%
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=mysql_dsn"
%>
Without DSN:
<%
set conn = createobject("ADODB.Connection") conn.open = "DRIVER={MySQL ODBC 3.51 Driver};" & _
"SERVER=yourHostName;" & _
"DATABASE=yourDBName;" & _
"UID=yourUserName;PWD=yourPassword; OPTION=35;"
%>
Check for values for the OPTION parameter.This was first published in September 2006

Join the conversationComment
Share
Comments
Results
Contribute to the conversation