Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Embedded single quotes in SQL Server
Message
De
11/06/2004 16:26:29
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00912856
Message ID:
00912911
Vues:
8
Now that you say it, I remember that I wrote some code that looked at the string and doubled up the ' when building the INSERT statement. Thanks for the memory jog.

Gary

>>Hi,
>>I need to embed single quotes in an sp string to SQL Server 2k, e.g. "O'Mally", and cannot for the life of me remember how. I'm sure I've done it in the past. At least I *think* I'm sure I've done it before! Anybody know how?
>>
>Gary,
>
>Double them inside a string literal.
'O''Mally'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform