royalcheese
Technical User
Dear all
I want to export a table (SQL 2005) to Excel (2003) I have tried to use the code below
but get this error
Please can anyone help me / give me some pointers
Thanks in advance
Chris
I want to export a table (SQL 2005) to Excel (2003) I have tried to use the code below
Code:
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\testing.xls;',
'SELECT * FROM [sheet1$]') select * from dbo.test_table
but get this error
Code:
Msg 7399, Level 16, State 1, Line 4
The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 4
Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
Please can anyone help me / give me some pointers
Thanks in advance
Chris