Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 failed to export

Author  Topic 

nounabarbie
Starting Member

10 Posts

Posted - 2006-04-13 : 07:59:16
Hi
I used The following code to export an SQL SERVER VIEW(V1) to an excel file named testing.xls
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\testing.xls;',
'SELECT * FROM [SheetName$]') select * from [v1]


(the testing.xls file contains the same header than the view) but an error occured
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error.



what's wrong?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-05-03 : 10:44:22
Make sure the file is closed before running that query

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -