Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Records update for SQL
Message
From
03/12/2002 11:26:19
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00723076
Message ID:
00729026
Views:
14
>Daniel,
>
>PMFJI, I do chain/batch commands with SQLExec() all the time, and I never use the semicolon to "chain" the commands.
>
>This is the way I would have done it.
>
>TEXT TO lcSQL TEXTMERGE NOSHOW
>update table set x = y where <<condition>>
>select @@rowcount as rowcount
>ENDTEXT
>*&
>= sqlexec(liConnection, lcSQL, curResults)
>
>
>And my question is, are we doing to same thing? Or they're different?
>
>Hope you understand my question.
>
>TIA.
>
>
>Wan

It does look like we are doing the same thing. I dismember where I saw the info on using a semi-colon, but if you look up "batches, executing statements with ODBC" in the BOL you will see one example.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform