Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error in sql query

Status
Not open for further replies.

parames

MIS
Jun 26, 2000
71
MY
Hi list..

Set Conn = Server.CreateObject("ADODB.Connection")
strDSN ="DRIVER={MySQL};SERVER=150.150.1.118;DATABASE=test;UID=root;PWD=;"
Conn.Open strDSN

Query = "select DAYOFWEEK('2002-03-01') as show_day"
Set RS = Conn.Execute(Query)
show_day = RS("show_day")

When i run this query, there is an error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Driver does not support this parameter
/test/quality.asp, line 20

line 20 ---> show_day = RS("show_day")

I'm using mySql database. When i run this query in mySql, there is an output. But, when i run this in asp page, error message prompted out..
What's the problem actually, and how to solve it. Please help..

Thanks a lot.

Best Regards,
Parameswari Sellaparma
 
I'm not that familiar with mySQL, but I think the problem is with ADO.

Try using a command object to build the recordset, and experiment with different CommandType values (e.g. adCmdText, adCmdStoredProc).
codestorm
Fire bad. Tree pretty. - Buffy
Hey, I'm operating on a limited mental budget here.
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top