🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

MDAC/ADO & SP2 does not like Bosnia and Herzegovina

#248
From: Vladimir Stefanovic
Date: Tue, 23 Jan 2007 17:07
72 lines
2744 bytes
Hi,


There is a history of misteriously 'damaged' MDAC/ADO under XP/SP2,
so the simple code that uses ADO queries (like this below) fails:

AnsiString TDiMainForm::GetDBVer()
{
   AnsiString Ver = "";

   ADOQuery->Close();
   ADOQuery->SQL->Clear();
   ADOQuery->SQL->Add( "select top 1 * from TblVer" );

   AnsiString CS = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
                   ChangeFileExt( ParamStr(0), C(IDS_SER_MAIN_MDB) ) +
                   ";Mode=Read;Persist Security Info=False";

   ADOQuery->ConnectionString = CS;

   try
   {
      try
      {
         ADOQuery->Open();
         Ver = ADOQuery->FieldValues["Ver"];
      }
      catch ( const Exception &e )
      {
         //ShowMessage( "GetDBVer Error" );
      }
   }
   __finally
   {
      ADOQuery->Close();
   }
   return ( Ver );
}

After lots of investigation, I've found that this is happening because
of settings in Regional and Language Options, which SP2 do not 'like':

SP2 does not like 'Bosnia and Herzegovina' as sufix.

Control Panel > Regional and Language Options > Regional Options

--- Standards and Formats ---
For example, this stops ADO to work: Serbian (Latin, Bosnia and Herzegovina)
Choosing anything other: Serbian (Latin), or English (United States) works.

--- Location ---
Haven't tested, but I suppose that this also has to be corrected.

In other words, this is not desirable for programs that uses ADO:
- Serbian (Cyrillic, Bosnia and Herzegovina)
- Serbian (Latin, Bosnia and Herzegovina)

This is desirable:
- Serbian (Cyrillic)
- Serbian (Latin)

This problem is also known with one version of famous SiSoft Sandra. That's
how I discovered this problem, which I was complaining some time ago.

Who knows how many other new countries has the same problem.




-- 
Best Regards,
Vladimir Stefanovic
Technical Details
Message-ID: <45b640a0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,30a45918d3e03a22,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: MDAC/ADO & SP2 does not like Bosnia and Herzegovina
Date: Tue, 23 Jan 2007 18:07:18 +0100
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 87.116.181.111
Message-ID: <45b640a0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169572000 87.116.181.111 (23 Jan 2007 09:06:40 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail