Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: Saving SELECT Results to a CSV file

    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...

  • RE: OPENROWSET(INSERT) ERROR COLUMNS NAMES

    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...

  • RE: OPENROWSET(INSERT) ERROR COLUMNS NAMES

    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....

Viewing 3 posts - 1 through 3 (of 3 total)