Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving text with apostrophes
Message
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
Saving text with apostrophes
Divers
Thread ID:
00467048
Message ID:
00467048
Vues:
41
How do I programmatically save text with apostrophes in MSSQL text-field?

For example:

Set dbLogin = Server.createobject("ADODB.Connection")
dbLogin.Open Session("gDB_ConnectionString")

strText = "Here's your feedback"

strSQL = "INSERT INTO Feedback "
strSQL = strSQL & "(message, enteredby) VALUES "
strSQL = strSQL & "('" & Request.Form("txtMessage") & "', "
strSQL = strSQL & "'" & Trim(CStr(Request.Form("txtEnteredBy")))
strSQL = strSQL & " at " & Session("Username") & "')"

dbLogin.Execute(strSQL)

TIA.
It's "my" world. You're just living in it.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform