FredMastro
MIS
I was doing search on net, and I can't anywhere how to insert a string with quotes into SQL using ASP.
Ok I know how to use single quotes
Replace(String,"'","''" And don't say it's the same for double quotes because it doesn't work.
Replace(String,""","""" does not work.
I even tried Replace(String,CHR(34),CHR(34) & CHR(34)), no errors but doesn't work.
I know how to use it in an asp string. Response.Write "blah blah said, "" This aand that and variable of " & Var & """. yeah that's what he said"
I know all that.
I just want to know now to take
String = 64" x 32" of round wood
Now insert that into a SQL statement. Only the variable String is coming from a form.
INSERT INTO Table (field) VALUES('" & ???WHAT??? & "')"
Ok I know how to use single quotes
Replace(String,"'","''" And don't say it's the same for double quotes because it doesn't work.
Replace(String,""","""" does not work.
I even tried Replace(String,CHR(34),CHR(34) & CHR(34)), no errors but doesn't work.
I know how to use it in an asp string. Response.Write "blah blah said, "" This aand that and variable of " & Var & """. yeah that's what he said"
I know all that.
I just want to know now to take
String = 64" x 32" of round wood
Now insert that into a SQL statement. Only the variable String is coming from a form.
INSERT INTO Table (field) VALUES('" & ???WHAT??? & "')"