Vista Problem

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
start
Posts: 2
Joined: Thu 02 Aug 2007 05:03

Vista Problem

Post by start » Thu 02 Aug 2007 05:06

Hello,

Server PC:
Windows XP Pro
MSSQL 2005 Express
SDAC 4.10.0.9 Trial for Delphi7

Client PC:
Windows Vista Home

TEST1:
var
c :TMSConnection;
begin
c := TMSConnection.Create(nil);
c.ConnectString := 'Provider=SQLOLEDB.1;User ID=sa;Password=1881;Data Source=theblacksea\SQLEXPRESS;Initial Catalog=HTP2;Persist Security Info=True';

try
c.Open;
except
on E: Exception do
ShowMessage(e.Message);
end;


TEST2:
var
c :TMSConnection;
begin
c := TMSConnection.Create(nil);
c.Username := 'sa';
c.Password := '1881';
c.Server := 'theblacksea\SQLEXPRESS';
c.Database := 'HTP2'';

try
c.Open;
except
on E: Exception do
ShowMessage(e.Message);
end;

ERROR MESSAGE ON CLIENT PC : Wrong MDAC Version. Download latest MDAC Version.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 02 Aug 2007 10:59

Please check at runtime what SDAC version do you use. Just check the value of the SdacVersion variable in an application that uses the MSAccess unit of SDAC. if the value is '4.10.0.9', perform another test. Run the following code in your application (e.g. by click on a button), and report us the exact text of the message:

Code: Select all

var
  OSVersionInfo: TOSVersionInfo;
begin
  OSVersionInfo.dwOSVersionInfoSize := SizeOf(TOSVersionInfo);
  Windows.GetVersionEx(OSVersionInfo);
  ShowMessage('OSVersionInfo.dwMajorVersion: ' + IntToStr(OSVersionInfo.dwMajorVersion));
end;

start
Posts: 2
Joined: Thu 02 Aug 2007 05:03

Post by start » Thu 02 Aug 2007 13:20

Thank you for response,

i fixed problem,
changing the enviroment options of delphi

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 02 Aug 2007 13:58

Please describe in more details, what have you changed.

Post Reply