If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > ODBC Connection error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-09, 01:47
sadianaz sadianaz is offline
Registered User
 
Join Date: Nov 2009
Posts: 15
ODBC Connection error

I had the DSN connection in my code. Now I am uploading my files. Here I have to make connection string for the connection. Following error is occuring:

"Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"

I have written following code for it.

set adoConn = Server.CreateObject("ADODB.Connection")
set rsCategories = Server.CreateObject("ADODB.Recordset")

adoConn.Open "Driver={mySQL}; Server=205.178.146.77; Stmt= 'SELECT count(b.id) as artCount, a.id, b.categoryid, a.categoryname FROM wbs_categories a, wbs_articles b WHERE a.id=b.categoryid AND b.active=1 Group By a.id ORDER BY CategoryName'; Database=test_wz; Uid=dbtest_user; Pwd=3Db63Us9;"

rsCategories.ActiveConnection = adoConn

Can anybody help me for it?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On