Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing & \ ? from a parsed text file to SQL Server
Message
From
24/01/2005 20:27:42
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00979484
Message ID:
00980249
Views:
53
>That did it! Thanks Sergey. I would never have tried that. It's too simple.

Generally, I've found it a good practice to have one class which will handle all the requests to be sent to SQL server. So doubling the apostrophe happens only once, in one location.

One more thing - SET QUOTED_IDENTIFIER ON should really stay on, i.e. the apostrophe is the only string delimiter; quotation marks, [ and ] should remain a part of the syntax for server-side names. I've seen quite a mess when it was OFF, and then we had to double the quotation marks too, which seemed to work too well: I've seen as much as eight quotation marks surrounding a string...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform