Article View: borland.public.cppbuilder.database.ado
Article #3780Re: MSSQL2000+ADOExpress = Bag?
From: Yuancai (charlie) Ye
Date: Fri, 21 Jun 2002 14:11
Date: Fri, 21 Jun 2002 14:11
68 lines
2502 bytes
2502 bytes
Hi,
Why don't try OleDBPro at the site www.udaparts.com? It is the best
OLEDB consumer module for C++ development available in the world!
--
Yuancai (Charlie) Ye
Use of free SocketPro package for creating super client and server
application,
See 30 well-tested and real OLEDB examples
at http://www.udaparts.com
"Salimov" <salimov@chemk.chel.com.ru> wrote in message
news:3d12bcda_1@dnews...
>
> Hi!
> System: MSSQL2000+SP1 / C++Builder 5
> Result program running:
> iCounter: 2
> Mess: [DBNETLIB][ConnectionRead (recv()).]General network error. Check
your
> network documentation
> nNativeError: 11
>
> Q: is it bag? can around?
>
> Source:
>
> void __fastcall TForm1::Button2Click(TObject *Sender)
> {
> int iCounter = 0;
>
> try{
> while( iCounter < 100){
> ADOConnection1->Connected = false;
> ADOConnection1->Connected = true;
>
> TExecuteOptions eo;
> ADOConnection1->Execute( "exec sp_setapprole 'MyRole', 'q'",
cmdText,
> (eo.Clear()<<eoExecuteNoRecords) );
> iCounter++;
> }
> }
> catch( Exception &e){
> AnsiString as;
> int nNativeError;
> for( int i = ADOConnection1->Errors->Count - 1; i >= 0 ; i-- ){
> nNativeError = ADOConnection1->Errors->
> Item[i]->NativeError;
> }
> as.sprintf( "iCounter: %d\n Mess: %s\nnNativeError: %d ",
> iCounter,
> e.Message.c_str(),
> nNativeError
> );
> Application->MessageBox( as.c_str(), "Bag!!!", MB_OK);
> }
>
>
> }
>
>
>
>
>
>
>
Technical Details
Message-ID:
<3d1333c3_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3d12bcda_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,7a116a65e07ff2a2 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-21 07:15:42 PST Reply-To: "Yuancai \(charlie\) Ye" <yekerui@yahoo.com> From: "Yuancai \(charlie\) Ye" <yekerui@yahoo.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3d12bcda_1@dnews> Subject: Re: MSSQL2000+ADOExpress = Bag? Date: Fri, 21 Jun 2002 10:11:09 -0400 Lines: 70 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 NNTP-Posting-Host: 12.92.215.45 Message-ID: <3d1333c3_1@dnews> X-Trace: dnews 1024668611 12.92.215.45 (21 Jun 2002 07:10:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews