Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can Query Analyzer pretty up a SQL statement?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01102646
Message ID:
01102897
Views:
17
>>
>>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 "
>
>It's simplier and more readable with TEXTMERGE.
>
>TEXT TO lcSql TEXTMERGE NOSHOW PRETEXT 15
>SELECT *
>  FROM customers
>  WHERE id = <<lncustid>>
>  ORDER BY name
>ENDTEXT
>
Thank again Sergey. Much easier.
Previous
Reply
Map
View

Click here to load this message in the networking platform