Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert memo text
Message
De
07/03/2008 12:27:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Insert memo text
Divers
Thread ID:
01299781
Message ID:
01299781
Vues:
54
When using the SQL INSERT command, how do you "clean" a memo field if there are carriage returns in the memo text?
insert into mytable (memofield) values (memotext)
I am running this from an ASP page and it crashes if there are CRLF in the memotext.
execstr = "EXEC 'insert into memos (link_table,record_id,memo_name,memo_text,added_by)"
execstr = execstr & " values ([people],"
execstr = execstr & lcPerson_id & ","
execstr = execstr & "[notes],"
execstr = execstr & "[" & request.form("txtNotes") & "],"
execstr = execstr & "[" & session("FullUserName") & "])'"
response.write(execstr)
oConn.EXECUTE(execstr)
Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform