Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can Query Analyzer pretty up a SQL statement?
Message
 
 
To
09/03/2006 10:47:14
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01102646
Message ID:
01102866
Views:
15
>>In SQL 20005 Mangement Studio, I can right click on a database and create a new query. ...
>>
>>Is there a way to automatically format a SQL statement into a multiple lines. With the Selec one 1 line, then where on the next etc...
>
>Hi Evan,
>
>No, it's not available. I think it's on the list of developer-requested improvements though.

Thanks for letting me know.

>Try writing your query inside a Text...EndText block and you can easily paste back and forth between Fox and SSMS.

I can't tell from the VFP help, but if I use TEXT/ENDTEXT how do I insert string variables inline? Right now, my SQL statements will look like this in VFP.

lcSQL = "SELECT * FROM customers WHERE id = " + str(lncustid) + " ORDER BY name "
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform