Article View: borland.public.cppbuilder.database.ado
Article #1096ADO error 8179
From: Julian Lliteras
Date: Fri, 24 Dec 2004 10:44
Date: Fri, 24 Dec 2004 10:44
29 lines
1582 bytes
1582 bytes
Hi,
I get a TADOConnection and TADOQuery to execute an stored procedure and
retrieve result. I do something like:
query->SQL->Add("exec PROC_TEST
'A',0,0,0264207,'01/01/2005','07/01/2005','DB'");
query->Open();
This make an timeout error. But if I do query->Prepared = true first, and
get next sentences within a sql trace:
declare @P1 int
set @P1=1
exec sp_prepare @P1 output, NULL, N'exec PROC_TEST
''A'',0,0,0264207,''01/01/2005'',''07/01/2005'',''DB''
', 1
select @P1
This raise next error:
Servidor: mensaje 8179, nivel 16, estado 2, procedimiento sp_prepare, lοΏ½nea
3
If I execute the proc_test with exact values in the ms sql editor it runs
ok!
What's the problem?
Thanks.
Julian
Technical Details
Message-ID:
<41cbf30f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,6a3595a2c6a5f94e,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Julian Lliteras" <yartax@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADO error 8179 Date: Fri, 24 Dec 2004 11:44:35 +0100 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 213.96.91.217 Message-ID: <41cbf30f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103885071 213.96.91.217 (24 Dec 2004 02:44:31 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail