B
Boyd G
I created a stored procedure with a single input
parameter - datatype = decimal(14,4)
CREATE PROCEDURE dbo.procGetFeedRate
(@paramInputFishLBS int )
AS
SET NOCOUNT ON
SELECT convRatio, pctBdyWtFed
FROM dbo.FeedRates
WHERE (@paramInputFishLBS >= minLBS) AND
(@paramInputFishLBS <= maxLBS)
The maxLBS and minLBS columns that follow the WHERE
clause are also datatype = decimal(14,4)
When I execute the stored procedure from Enterprise
Manager it returns a record set. When the stored
procedure is run from Access2002 it does not return a
record set.
As a work around I converted the minLBS and MaxLBs to
datatype = integer. I also converted the
@paramInputFishLBS to datatype integer. The stored
procedure worked within Access 2002.
Does anyone know if Access2002 has some sort of bug where
you can not pass a decimal datatype as an input parameter
to a stored procedure?
parameter - datatype = decimal(14,4)
CREATE PROCEDURE dbo.procGetFeedRate
(@paramInputFishLBS int )
AS
SET NOCOUNT ON
SELECT convRatio, pctBdyWtFed
FROM dbo.FeedRates
WHERE (@paramInputFishLBS >= minLBS) AND
(@paramInputFishLBS <= maxLBS)
The maxLBS and minLBS columns that follow the WHERE
clause are also datatype = decimal(14,4)
When I execute the stored procedure from Enterprise
Manager it returns a record set. When the stored
procedure is run from Access2002 it does not return a
record set.
As a work around I converted the minLBS and MaxLBs to
datatype = integer. I also converted the
@paramInputFishLBS to datatype integer. The stored
procedure worked within Access 2002.
Does anyone know if Access2002 has some sort of bug where
you can not pass a decimal datatype as an input parameter
to a stored procedure?