Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Query Results to 'File' to Text in script
Message
 
 
À
25/03/2010 13:45:52
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Scripting
Divers
Thread ID:
01457214
Message ID:
01457226
Vues:
28
>>>A little but annoying thing. Is there any way to set Query Results to "File" or "Text" in a script?
>>>Googling has not turned up anything.
>>>
>>> I know I can do it in SSMS, but I would like to be able to just set it in my scripts.
>>>
>>>Thanks
>>
>>Try using FOR XML PATH(char(13)).
>>
>>Check this blog
>>http://bradsruminations.blogspot.com/2009/10/making-list-and-checking-it-twice.html
>>
>>Alternatively using BCP check the idea from How to script all stored procedures in a database the very bottom of the blog.
>
>
>Thank you.

You're welcome.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform