Wrox Programmer Forums
|
Classic ASP Databases Discuss 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
 
Old June 29th, 2004, 01:25 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default ASP/MySql

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


 
Old June 29th, 2004, 01:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Knight,

You are missing a "{" bracket there.

"Driver={mySQL};Server=mySrvName;Option=16834;Database=mydatabase ;"

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old June 29th, 2004, 01:52 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default

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

 
Old June 29th, 2004, 02:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is that a local database or remote database?

_________________________
- Vijay G
Strive for Perfection
 
Old June 29th, 2004, 02:53 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default

it is local database as the connection string said
same machine server and client

 
Old June 29th, 2004, 02:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I am not sure, but may be an MDAC upgrade can help you out.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP connection to MySQL ells228 Classic ASP Databases 5 June 21st, 2017 01:38 PM
ASP mysql Dj Kat Classic ASP Basics 2 January 19th, 2006 07:51 PM
MySQL with ASP ??? Varg_88 MySQL 1 December 18th, 2004 12:16 PM
MySQL with ASP ??? Varg_88 Classic ASP Databases 0 December 11th, 2004 05:19 AM
MySql Database with ASP RobinR Classic ASP Databases 0 February 23rd, 2004 09:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.