Classic ASP DatabasesDiscuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
i write the following codes
----------------------------
<%
Dim mysqlConn,rs
Set mysqlConn=Server.CreateObject("Adodb.Connection")
ConnString = "Driver=mySQL};Server=gateway;Option=16834;Databas e=mysql;"
mysqlConn.open ConnString
Set rs=Server.CreateObject("Adodb.Recordset")
sql="Select * from tblusers"
rs.open sql,mysqlConn
while rs.eof <> true
Response.Write(rs("User_ID"))
Response.Write(rs("Password"))
rs.movenext
wend
rs.close
Set rs=nothing
mysqlConn.close
Set mysqlConn=nothing
%>
-----------------------
this script showing the following error at line 13
pointing in red line as under
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/online/mysqltest.asp, line 13
pls help me
no dear it was my cut and paste mistake the actual code have it
ConnString = "Driver={mySQL};Server=gateway;Option=16834;Databa se=mysql;"
the problem isnt there