Viewing 3 posts - 1 through 3 (of 3 total)
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;HDR=YES;Database=C:\pubsTest.xls', 'SELECT * FROM [Sheet1$]')
SELECT * FROM pubs.dbo.authors
Server: Msg 213, Level 16, State 5, Line 1
Insert Error: Column name or number of supplied values does not...
March 25, 2008 at 11:13 am
Even this simple query also doesnot work, the issue is still the same... I want the column names to be taken from the select * statement and donot want to...
March 25, 2008 at 11:13 am
Thanks for your reply. The thing is this, I donot want to hard code the column names in my excel, so there are NO column names mentioned in the excel....
March 25, 2008 at 10:49 am
Viewing 3 posts - 1 through 3 (of 3 total)