I have this stored procedure.
CREATE PROCEDURE [sp_SWGetOnHandQuantity]
@ProdID varchar
AS SELECT OnHand FROM tblInventory WHERE ProdID = @ProdID
However it will not return the matching record.
My table has the field type varchar, and a unique index.
If I search on the identity field with an integer type the product is found. But I am unable to find it on the ProdID field.
Thanks [sig]<p>John A. Gilman<br><a href=mailto:gms@uslink.net>gms@uslink.net</a><br>[/sig]
CREATE PROCEDURE [sp_SWGetOnHandQuantity]
@ProdID varchar
AS SELECT OnHand FROM tblInventory WHERE ProdID = @ProdID
However it will not return the matching record.
My table has the field type varchar, and a unique index.
If I search on the identity field with an integer type the product is found. But I am unable to find it on the ProdID field.
Thanks [sig]<p>John A. Gilman<br><a href=mailto:gms@uslink.net>gms@uslink.net</a><br>[/sig]