Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: >>To insert double quotes thro ASP into SQL table


Message #1 by Vivekanand.S@i... on Thu, 28 Jun 2001 12:50:27 +0530

Hi All



how to insert double quotes into SQL table using ASP.



With Regards

Vivekanand.S





Message #2 by "Ken Schaefer" <ken@a...> on Thu, 28 Jun 2001 18:47:57 +1000
strSQL = _

    "INSERT INTO table1 (field1) " & _

    "VALUES('Here is some text with "" a double quote in it')



Cheers

Ken





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message ----- 

From: <Vivekanand.S@i...>

To: "ASP Databases" <asp_databases@p...>

Sent: Thursday, June 28, 2001 5:20 PM

Subject: [asp_databases] >>To insert double quotes thro ASP into SQL table





: 

: Hi All

: 

: how to insert double quotes into SQL table using ASP.

: 

: With Regards

: Vivekanand.S

: 





Message #3 by Gee Vee <happygv@y...> on Thu, 28 Jun 2001 01:51:45 -0700 (PDT)
Hi,



Try embedding the value of that column in single

quote.

Something like this



Mysql="insert <TABLENAME> Values('" & "Test "" String"

& "')"



assume that the table contains only one column, this

would insert the value in to the table as follows



ColumnName

-------------

Test " String



Let me know if it works.



Cheers

Vijay.G




  Return to Index