March 6, 2009 at 11:21 am
How to import data from sql server 2000 to excel sheet through a stored procedure.
March 6, 2009 at 9:41 pm
Hi,
Try this.
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\testing.xls;',
'SELECT Name, Date FROM [Sheet1$]')
SELECT [Name], GETDATE() FROM msdb.dbo.sysjobs
GO
Try these Links
http://www.sqlservercentral.com/Forums/Topic334873-338-335131
http://www.mssqltips.com/tip.asp?tip=1540
http://www.mssqltips.com/tip.asp?tip=1202
Regards,
Vijay Singh.C
March 6, 2009 at 10:06 pm
It would likely be better if you wrote the spreadsheet to pull from a view or proc using the "external data" features.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply