Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSDE - stored procedure to produce CSV or XML
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00939223
Message ID:
00939376
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>Hi - I need to see some data from a customer's MSDE database. The query is simple and ideally I want to send them a stored procedure that they can execute with OSQL and then they send me the output back. The resulting file could be a CSV or XML file.
>
>Is there a way to produce a CSV or XML file from a stored procedure that they can email me back?
>
Hi Chris,

Would this work for you?
osql -S myserver -d pubs -E -s"," -w 1000 -o h:\tmp\osql.txt -Q "SELECT * FROM authors"
-- or
osql -S myserver -d pubs -E -s"," -w 1000 -o h:\tmp\osql.txt -Q "EXEC reptq1"
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform