View Full Version : ASP MySQL DSN less Connection
bestip
07-11-2004, 01:18 AM
Hi,
Can any one give me the code, for how to connect mySQL using ASP with DSN Less.
Thank You
bruce
07-11-2004, 10:06 AM
http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForMySQL
I have not tested this and cannot confirm whether this works or not.
[b]quote:Originally posted by bestip
Hi,
Can any one give me the code, for how to connect mySQL using ASP with DSN Less.
Thank You
</blockquote id="quote"></font id="quote">
Aristotle
07-12-2004, 06:35 AM
I think you have to use a DSN. I don't think that the OLEDB drivers for MySQL are installed.
yiouli1
07-12-2004, 08:59 AM
Set Con=Server.CreateObject("ADODB.Connection")
Con.Open "accessDSN"
accessDSN is the virtual name for my database. I hope that's what you need....
bestip
07-13-2004, 02:15 AM
Hi all,
How can i use DNS for the connectivity? Because i want to connect the MySQL database which is running on another hosting server not on aspdiscount server.
Here is the code i am trying to connect using ASP from discountASP server to abother server.
'================================================= ===
<%
strConnection = "driver={MySQL};server=WWW.ANOTHERSERVER.COM;uid=us ername;pwd=password;database=db_name;option=NUM"
Set adoConn = Server.CreateObject("ADODB.Connection")
adoConn.Open strConnection
%>
'================================================= =============
vBulletin® ©Jelsoft Enterprises Ltd.