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

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
mgb

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

Post by mgb » Fri 03 Feb 2006 18:32

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

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 09 Feb 2006 10:42

Thank you for information. We reproduced your problem and fixed it. Please specify your email address and we will send fixed version to you.

mgb

Post by mgb » Thu 09 Feb 2006 17:01

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.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 10 Feb 2006 15:52

Please send your address to dbxsda*crlab*com.

Flavio

Same Problem

Post by Flavio » Fri 10 Feb 2006 21:44

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.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 16 Feb 2006 10:45

> 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.

Post Reply