W
Wayne Wengert
I am using VB.NET connected to an SQL 2000 server and I want to save some
text fields from a form to string fields in a table. The text might include
some single quotes so in my update command I am replacing single quotes with
two single quotes so that the update query works. (see piece of statement
below)
My problem is that when I look at what really gets stored in the table, all
single quotes are now doubled such as:
Text Value = Joe's
Stored in table = Joe''s
What am I missing here?
============ Segment of SQL statement =============
Update UnitShowInfo Set ShowName = '" & Replace(txtShowName.Text, "'", "''")
& "',.....
text fields from a form to string fields in a table. The text might include
some single quotes so in my update command I am replacing single quotes with
two single quotes so that the update query works. (see piece of statement
below)
My problem is that when I look at what really gets stored in the table, all
single quotes are now doubled such as:
Text Value = Joe's
Stored in table = Joe''s
What am I missing here?
============ Segment of SQL statement =============
Update UnitShowInfo Set ShowName = '" & Replace(txtShowName.Text, "'", "''")
& "',.....