Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exporting Data to an Excel File
Message
De
19/05/2001 22:28:35
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00509145
Message ID:
00509155
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform