Page 1 of 1

Version 3.00 & SQL Server 2005: still broken...

Posted: Fri 03 Feb 2006 18:32
by mgb
Hi all,

I´ve downloaded the latest version of the dbExpress MSSQL driver (3.00 trial) and tried to execute a stored procedure using Delphi 7 & SQL Server 2005 Express. Like the older versions, it´s still broken.

Here is the script to create the tables and stored procedure:

Code: Select all

CREATE TABLE NrContr2 (
CdCampo varchar(15) NOT NULL,
TamCampo numeric(2,0) NOT NULL,
UsaAno char(1) NOT NULL,
UltValor int NOT NULL,
Ano numeric(5,0) NOT NULL
)
GO

ALTER TABLE NrContr2
ADD CONSTRAINT PK_NrContr2 PRIMARY KEY (CDCampo)
GO

INSERT INTO NrContr2
VALUES 
('ID',10,'S',0,2006)
GO

CREATE PROCEDURE stpProxNumero2(@Campo varchar(15), @ProxNumero int OUTPUT) AS
BEGIN
  UPDATE NrContr2 SET UltValor = UltValor+1   WHERE CdCampo = @Campo
  Select @ProxNumero = UltValor2 From NrContr WHERE CdCampo = @Campo
END
GO
The first problem that occurs is that the TSQLStoredProc component doesn´t creates the parameters. So I created the parameters by my own:

Code: Select all

Name: Campo
DataType : ftString
ParamType: ptInput

Name: ProxNumero
DataType: ftInteger
ParamType: ptInputOutput.
Executing the code:

Code: Select all

var
   sNrContr, sCampo : String;
begin
   sCampo := 'ID';

   with SQLStoredProc1 do
   begin
      Params.ParamByName( 'Campo' ).AsString := sCampo;
      Params.ParamByName( 'ProxNumero' ).AsString := sNrContr;
      ExecProc;
   end;
end;
gives the following error:

Project Project1.exe raised exception class EMSError with message 'Invalid object name 'master.dbo.spt_provider_types'.

Is this a bug of the dbExpress driver, or what I´m doing wrong????
If it´s a bug, when will it be fixed? According to other posts the same error already occurred with earlier versions of the driver but it was supposed to be fixed in a new version which officially supports SQL Server 2005.

P.S. all the above works fine with SQL Server 2000

Posted: Thu 09 Feb 2006 10:42
by Ikar
Thank you for information. We reproduced your problem and fixed it. Please specify your email address and we will send fixed version to you.

Posted: Thu 09 Feb 2006 17:01
by mgb
Ikar wrote:Thank you for information. We reproduced your problem and fixed it. Please specify your email address and we will send fixed version to you.
Thank you very much for fixing the problem. My email address I´ve mailed to [email protected]

I hope to receive the new version soon.

Posted: Fri 10 Feb 2006 15:52
by Ikar
Please send your address to dbxsda*crlab*com.

Same Problem

Posted: Fri 10 Feb 2006 21:44
by Flavio
Ikar wrote:Please send your address to dbxsda*crlab*com.
I've had the same problem with my registered 2.50.7 version (Delphi 7 + SQL 2005). What can I do to fix it? The upgrade to 3.XX.X is free?

Thanks.

Posted: Thu 16 Feb 2006 10:45
by Ikar
> I've had the same problem with my registered 2.50.7 version (Delphi 7 + SQL 2005).

New fixed build (3.00.3) will be available approximately next week.

> What can I do to fix it? The upgrade to 3.XX.X is free?

No, please contact sales*crlab*com to get more detailed information.