Exec Stored Procedure failed Variable Contains Special Characters

I am trying to execute the following stored procedure.
EXEC [dbo].[usp_TurnoverUpdate] #form.TurnoverID#, '#form.Area#', '#form.begindate#', '#form.enddate#', Active#,  '#form.Description#', '#form.TurnoverText#'

It works as long as #form.turnoverText# doesn't contain any special characters. I need to allow special characters to be passed and inserted into the database ntext field how would i do this?
LVL 1
golfingmaniac_omahaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

golfingmaniac_omahaAuthor Commented:
I know i can do a find replace on a single quote but is that the only special character that could screw up the process?
0
Anthony PerkinsCommented:
>>but is that the only special character that could screw up the process?<<
Yes.
0
golfingmaniac_omahaAuthor Commented:
pretty sure that sql only looks for single quotes in strings.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Melih SARICAOwnerCommented:
single Quote is the Only and only Character that u ave to take care while ur Programming SQL server
cuz its the Delimeter of the strings..


Melih SARICA
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Melih SARICAOwnerCommented:
I think that points must be shared with Acperkins..

He gives the answer. shortly but its an answer 2.


best regards

Melih SARICA
0
Anthony PerkinsCommented:
>>I think that points must be shared with Acperkins<<
No problem.
0
golfingmaniac_omahaAuthor Commented:
sorry how can i go back and do that?
0
Anthony PerkinsCommented:
It is not a big deal.  But if you really want to do it, here are the instructions:

I accepted the wrong answer. Now what?
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/help.jsp#hi17

And:

Can I split the points?
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/help.jsp#hi19
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.