Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
What is wrong with my dsn-less Excel connection string? My Links
Old 05-10-2010, 12:07 PM What is wrong with my dsn-less Excel connection string? My Links
Junior Talker

Posts: 1
Trades: 0
I'm very new at this, and just need to create a dsn-less connection string to an Excel spreadsheet. However, I keep getting errors!

This is my connection string script:

Code:
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO" 
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_NCA_Con2_STRING
MM_NCA_Con2_STRING = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\SMU_Cheer\fpdb\NCA_IMPOR  T.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
%>
This is the error I get:

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/SMU_Cheer/Connections/NCA_Con2.asp, line 9, column 49
MM_NCA_Con2_STRING = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\SMU_Cheer\fpdb\NCA_IMPOR T.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
------------------------------------------------^

Forgive me if this is a dumb question. I've been searching forums and blogs to get an answer, but haven't had any luck.

Many thanks!
Skye
skyebrannon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-10-2010, 06:01 PM Re: What is wrong with my dsn-less Excel connection string? My Links
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,336
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A string value needs to be enclosed in quotes.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to What is wrong with my dsn-less Excel connection string? My Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26060 seconds with 12 queries