Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can Query Analyzer pretty up a SQL statement?
Message
 
À
09/03/2006 14:11:43
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01102646
Message ID:
01102906
Vues:
13
Hello again Cindy.

I had some vague recollection that this was possible, but when I had started this SQL Server conversion project I couldn't think of what to search on in help. This project is going to go much faster because:
- coding of the strings will be much faster, since there will be far fewer changes to the SQL statements
- the code is far easier to understand while debugging
- pasting the statement into the SQL Server query analyzer now has the proper multi-line formatting

>Do you need to use the TextMerge keyword? Right click on the whole code including the lnCustID = 1 and execute.
>lnCustID = 1
>Text To lcSQL TextMerge NoShow
>Select
>  Customers.*
>From
>  Customers
>Where
>  ID = <<lnCustID>>
>Order By
>  Name
>EndText
>
>*-- _ClipText = lnCustID, paste into SSMS
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform