ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excel ADO connection string

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL)
View previous topic :: View next topic  
Author Message
riki



Joined: 01 Dec 2004
Posts: 1

PostPosted: Wed Dec 01, 2004 11:17 am    Post subject: Excel ADO connection string Reply with quote

Hi,

I want to connect to an Excel spreadsheet from ASP, but I don't have any idea what ADO connection string to use. Does somebody know what the Excel ADO connection string should look like?



Riki
Back to top
View user's profile Send private message
paul



Joined: 11 Oct 2004
Posts: 128

PostPosted: Wed Dec 01, 2004 2:57 pm    Post subject: Reply with quote

Riki,

Here is a sample ADO Excel connection string:

sConnectionString = "Driver={Microsoft Excel Driver (*.xls)}; DriverId=790; Dbq=D:\Your_Path_Here\Your_Excel_File_Here.xls; DefaultDir=D:\Your_Path_Here"


I hope this helps,

Paul
_________________
World Countries | Survival Skills
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial