Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fields containing quotes
Message
 
 
À
19/09/2000 10:14:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00418001
Message ID:
00418059
Vues:
26
>>I am trying to insert records into a SQL Server 7.0 table where some of the text fields contain double and/or single quotes. I have searched the UT on this issue and found that the solution is to add an extra quote when one is found in the string, but this isn't working for me. When I add an extra quote, I get both quotes in my field.
>>
>>I have read the SET QUOTED_IDENTIFIER section in the BOL, but it is not completely clear. Does that setting only apply at the time the structure is created?
>
>SQL Server only accepts single quotes around strings (you may already know that, but JIC)



It's true if QUOTED_IDENTIFIER option is set ON or quoted identifier option of sp_dboption is set True.
Otherwise SQL Server WILL accept double quotes around strings.

>
<<snip>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform