Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ANSI SQL Statements in VFP
Message
From
14/03/2000 16:23:39
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00345519
Message ID:
00345554
Views:
20
Phillip,

>> lcSql = "UPDATE nametbl SET name = [" +lcName+ "] WHERE id = 5"
>
>I am not sure about the brackets in SQL Server, but definitely...
>
>lcSql = "UPDATE nametbl SET name = '" +lcName+ "' WHERE id = 5"

But will SQL Server choke on the single quote in the character string? With Bob "Skip" O'Hara the lcSql would become:
UPDATE nametbl SET name = 'Bob "Skip" O'Hara' WHERE id = 5
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform