HI FRIENDS THIS IS AMIT. THE PROBLEM IS I M TRYING TO EXPORT DATA FROM SQL SERVER TABLE TO EXCEL FILE USING FOLLOWING CODE SNIPPET,
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 7.0;Database=c:\testing.xls;',
'SELECT * FROM [Sheet1$]') select * from TABLE1
BUT IT IS SHOWING SOME ERROR WHICH IS AS FOLLOWS,
Invalid object name 'OPENROWSET'.
I FOUND OPENROWSET FUNCTION IN T-SQL REFERENCE BUT STILL THE ABOVE MESSAGE IS COMING PLS HELP IN THIS MATTER ASAP.
REGARDS,
AMIT.
What version of SQL Server are you using (show the output of SELECT @.@.VERSION)?Steve Kass
Drew University
http://www.stevekass.com|||
Make sure you have "Ad Hoc Remote Queries" enabled for your instance.
|||Kindly provide the version of the SQL Server you are using, it should ideally work without problem in SQL Server 2000 and above. You can however try the same using DTS (Data Transformation Services)|||Excel 7.0??Try Excel 5.0 or Excel 8.0
No comments:
Post a Comment