PDA

View Full Version : Connection to Database


plasterx
11-22-2005, 08:57 AM
Hi all, would like to ask some questions on connecting to mySQL. is the syntax the same as connecting to mssql using asp?? this is how i connect to mssql using asp:

Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = SErver.CreateObject("ADODB.Recordset")
strConn = "DSN=FYP_Actual;Driver={SQL SERVER}; UID=sa;pwd=;"
Conn.Open strConn

is this the same way i connect to mySQL too?

ecnarongi
11-23-2005, 05:56 PM
what language are you using now trying to connect to the mysql database?

plasterx
11-24-2005, 09:42 AM
Asp.=)

mysqlautobackup
11-25-2005, 05:12 PM
Please install the MyODBC first.

:)