I need to import an Excel file. I am using the following code to connect to the sheet:
Set objConn = Server.CreateObject ("ADODB.Connection")
objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath(C:\sample\abcd.xls) & ";ReadOnly= false ; UID=admin;"
On doing so, I am getting the following error:
Microsoft OLE DB Provider for ODBC Drivers error ''80004005''.
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
What is causing this error?