| | |
Export Data From Excel to ASP and SQL Server
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2005
Posts: 2
Reputation:
Solved Threads: 0
I copied book1.xls into IISServer c:/inetpup/wwwroot
objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath("/book1.xls") &";ReadOnly= true ; UID=admin;"
Dim strSQL
excelfilename = "Book1.xls"
strSQL = "select * from " & excelfilename
Dim objRS
Set objRS = Server.CreateObject ("ADODB.RecordSet")
objRS.Open strSQL, objConn,3,3
When I execute the page
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC driver does not support the requested properties.
Please help me
Regards
Chandrakumar
chandrakumar@dzinegarage.com
objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath("/book1.xls") &";ReadOnly= true ; UID=admin;"
Dim strSQL
excelfilename = "Book1.xls"
strSQL = "select * from " & excelfilename
Dim objRS
Set objRS = Server.CreateObject ("ADODB.RecordSet")
objRS.Open strSQL, objConn,3,3
When I execute the page
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC driver does not support the requested properties.
Please help me
Regards
Chandrakumar
chandrakumar@dzinegarage.com
•
•
Join Date: Sep 2005
Posts: 2
Reputation:
Solved Threads: 0
I Upload Book1.xls in to IISServer machine c:\Inetpub\wwwroot
When I am Using this code in ASP
Dim objConn
Set objConn = Server.CreateObject ("ADODB.Connection")
'response.write Server.mappath("/")
'response.end
objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath("/book1.xls") &";ReadOnly= true ; UID=admin;"
Dim strSQL
excelfilename = "Book1.xls"
strSQL = "select * from " & excelfilename
Dim objRS
Set objRS = Server.CreateObject ("ADODB.RecordSet")
objRS.Open strSQL, objConn,2,3
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Excel Driver] The Microsoft Jet database engine cannot open the file 'Book1'. It is already opened exclusively by another user, or you need permission to view its data.
Please help me.
When I am Using this code in ASP
Dim objConn
Set objConn = Server.CreateObject ("ADODB.Connection")
'response.write Server.mappath("/")
'response.end
objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath("/book1.xls") &";ReadOnly= true ; UID=admin;"
Dim strSQL
excelfilename = "Book1.xls"
strSQL = "select * from " & excelfilename
Dim objRS
Set objRS = Server.CreateObject ("ADODB.RecordSet")
objRS.Open strSQL, objConn,2,3
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Excel Driver] The Microsoft Jet database engine cannot open the file 'Book1'. It is already opened exclusively by another user, or you need permission to view its data.
Please help me.
![]() |
Similar Threads
- How i Can connect Sql Server with ASP (ASP)
- Freelance Web designer PHP, MySQL, ASP, SQL Server 2000 (Post your Resume)
- Senior C#.Net Software Engineer - Oxfordshire - ASP. Net / SQL Server (Web Development Job Offers)
- Importing excel data to sql server (C#)
- Export to Excel from ASP.NET app (ASP.NET)
- Connecting to SQL server in Local machine (ASP)
- Professional Freelance Web designer India PHP MySQL ASP SQL Server (Community Introductions)
- SQL Server vs MYSQL vs MSQL (i'm stopping now) (MS SQL)
Other Threads in the C++ Forum
- Previous Thread: Program difficuly
- Next Thread: How To Remotely Access A Computer: C++
| Thread Tools | Search this Thread |
api array based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





