Page 1 of 1

problem with connection in windows xp sp3

Posted: Tue 23 Oct 2012 15:18
by douglasfabiano
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

Re: problem with connection in windows xp sp3

Posted: Tue 23 Oct 2012 16:28
by AndreyZ
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.

Re: problem with connection in windows xp sp3

Posted: Tue 23 Oct 2012 17:31
by douglasfabiano
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

Re: problem with connection in windows xp sp3

Posted: Wed 24 Oct 2012 07:08
by AndreyZ
It is good to see that you have found a solution. If any other questions come up, please contact us.