dbTalk Databases Forums  

'Data source name not found and no default driver specified'

comp.databases comp.databases


Discuss 'Data source name not found and no default driver specified' in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maud Palustran
 
Posts: n/a

Default 'Data source name not found and no default driver specified' - 07-24-2003 , 06:16 PM






Hi!
I would like to connect to a CSV file,
To me, the connection is right, however i get the following message
'Data source name not found and no default driver specified'
What is wrong with this connection?
Thanks for your help!!!

set objExcel = server.createobject("adodb.Connection")



strConn ="DRIVER=Microsoft Text Driver (*.txt; *.csv);" &_
"UID=admin;UserCommitSync=Yes;Threads=3;SafeTransa ctions=0;" &_
"PageTimeout=5;MaxScanRows=8;MaxBufferSize=2048;FI L=text;" &_
"DriverId=27;DefaultDir=C:\INETPUB\WWWROOT\TESTCOD EGENERATOR\IMPORTEXCEL\UPLOAD;"&_
"DBQ=C:\Inetpub\wwwroot\TestCodeGenerator\importex cel\upload\ALCONTCT.csv;"

objExcel.Open strConn

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.