Re: SQL Server Unclosed Quotes Error Message
- From: "David" <ddenby@xxxxxxxxx>
- Date: 2 Dec 2005 05:55:43 -0700
I'm not 100% sure that I have an answer for you because the question leaves a lot to the imagination, but if your stored proc requires parameters and one or more of them is a string AND you are populating the parameters at runtime, are you enclosing them in two single quotes?? Delphi will interpret a single quote as a string delimiter... you must use multiples of the single quote to have the (one) single quote passed to your parameter (e.g. MyString := '''Parm1''';) This will result in Delphi assigning 'Parm1' to MyString and that can be used to assign your parameter.
If I have missed (not understood) your issue, please respond with a little more detail so someone can help you.
Regards
"Shekar" <shekar@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>Hi,
> I am accessing SQL Server 2000 through ADO using D5.
>Executing certain stored procedures randomly generate exception with
>following message:
>
>Unclosed quotation mark before the character string ''
>
>Sometimes '' is replaced by junk chars. But if i execute the same procedure
>call statement thru Query Analyser, it goes thru.
>
>Can someone tell me what could the problem?
>
>Regards
>Shekar
>
>
>
.
- References:
- SQL Server Unclosed Quotes Error Message
- From: Shekar
- SQL Server Unclosed Quotes Error Message
- Prev by Date: Form refresh when activating a ADOQuery
- Next by Date: Re: Pointer to TADOConnection
- Previous by thread: Re: SQL Server Unclosed Quotes Error Message
- Next by thread: Form refresh when activating a ADOQuery
- Index(es):
Relevant Pages
|
Loading