🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3773

MSSQL2000+ADOExpress = Bag?

#3773
From: Salimov
Date: Fri, 21 Jun 2002 05:42
45 lines
1890 bytes
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: <3d12bcda_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,7a116a65e07ff2a2,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-06-20 22:45:24 PST
From: "Salimov" <salimov@chemk.chel.com.ru>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: MSSQL2000+ADOExpress = Bag?
Date: Fri, 21 Jun 2002 11:42:40 +0600
Lines: 52
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 213.242.59.34
Message-ID: <3d12bcda_1@dnews>
X-Trace: dnews 1024638170 213.242.59.34 (20 Jun 2002 22:42:50 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews