Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Sql Server

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-03-07 : 07:30:03
Roomana writes "I am trying to insert the value of a text area field with ASP . The problem is if the user types in a word that contains an apostrophe (') I get an improper character assignment error in my SQL statement."

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2003-03-07 : 07:41:29
Try this to insert (') in a text column
Insert table (t) values ('Sekar''s home')

It will be easier to answer if you post your query.




___________________________________________________________________________
Success is not a destination that you ever reach. Success is the quality of your journey.
Go to Top of Page

Robwhittaker
Yak Posting Veteran

85 Posts

Posted - 2003-03-07 : 08:28:17
' are self exiting so if you change all ' to '' you should be fine

Go to Top of Page
   

- Advertisement -