SteveDingle
Programmer
Heya All,
I'm starting to run into problems where I am passing in string parameters into a Stored Procedure that MAY contain a single quote.
EXECUTE Blah @String = 'this is my o'malley'
I started thinking of handling it in the client application but then wondered if it might not be better pratice to ALWAYS use Replace(String,"'","''") on ANY string parameter I may get in since I can't be 100% sure then only application calling the SP will be mine
Would appreciate any and all thoughts.
Toodles,
Steve Dingle
D&S Business Solutions Ltd
I'm starting to run into problems where I am passing in string parameters into a Stored Procedure that MAY contain a single quote.
EXECUTE Blah @String = 'this is my o'malley'
I started thinking of handling it in the client application but then wondered if it might not be better pratice to ALWAYS use Replace(String,"'","''") on ANY string parameter I may get in since I can't be 100% sure then only application calling the SP will be mine
Would appreciate any and all thoughts.
Toodles,
Steve Dingle
D&S Business Solutions Ltd