problem with connection in windows xp sp3

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
douglasfabiano
Posts: 5
Joined: Mon 17 Sep 2012 23:24

problem with connection in windows xp sp3

Post by douglasfabiano » Tue 23 Oct 2012 15:18

hello ..
I use the driver for UniDAC connection with Ms-sql server for delphi.
occurs that may have problems with connection on machines with Windows XP sp3.

The error that occurs is: "ole db error occured. 0x80004005h Code"
could someone help?

Douglas Specht

AndreyZ

Re: problem with connection in windows xp sp3

Post by AndreyZ » Tue 23 Oct 2012 16:28

Hello,

Please try executing the following code:

Code: Select all

uses OLEDBAccess;

procedure TForm1.Button1Click(Sender: TObject);
var
  er: EMSError;
  ts: string;
  i: integer;
begin
  try
    UniConnection1.Open;
  except
    on E: EUniError do begin
      er := EMSError(E.InnerError);
      ts := '';
      for i := 0 to er.ErrorCount - 1 do
        ts := ts + 'Message: ' + er.Message + '; ErrorCode: ' + IntToStr(er.Errors[i].ErrorCode) + '; OLEDBErrorCode: ' + IntToStr(er.Errors[i].OLEDBErrorCode) + #13#10;
      ShowMessage(ts);
    end;
  end;
end;
, and specify the exact message that the ShowMessage function will show you.

douglasfabiano
Posts: 5
Joined: Mon 17 Sep 2012 23:24

Re: problem with connection in windows xp sp3

Post by douglasfabiano » Tue 23 Oct 2012 17:31

thanks for your reply,
but I managed to solve installing client ms-sql server 2008 cd that comes in install mode server database.


douglas specht

AndreyZ

Re: problem with connection in windows xp sp3

Post by AndreyZ » Wed 24 Oct 2012 07:08

It is good to see that you have found a solution. If any other questions come up, please contact us.

Post Reply