Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting Data to an Excel File
Message
From
19/05/2001 22:28:35
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00509145
Message ID:
00509155
Views:
26
>Is there any way that I can transfer fetched data from a view into an excel file.

What version are you using? You could run an instance of Excel through OLE Automation and write the data to it adding formatting and other presentation details just like you can from other languages like VB or VFP, using stored procedures and T-SQL.

Look up:
sp_OACreate

Something like:
DECLARE @object int
DECLARE @hr int
EXEC @hr = sp_OACreate 'Excel.Application', @object OUT


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform