oracleguy
06-13-2003, 10:09 PM
I'm having some problems getting values back from a stored procedure. I know how to put some in but I don't know how to get them back out.
Here is my stored procedure:CREATE PROCEDURE dbo.ext_wwid2
@ShortID nvarchar(10),
@FName nvarchar(50),
@LName nvarchar(50),
@PhoneNum nvarchar(20),
@DA nvarchar(150),
@CID int
AS
declare @WWID int
SELECT @WWID=(min(convert(int,WWID))-1) FROM i_user;
INSERT INTO i_user (ShortID, FirstName, LastName, PhoneNum,
DomainAddress, CID, LongID, WWID)
VALUES(@ShortID, @FName, @LName, @PhoneNum, @DA, @CID,
@LName+', '+@FName, @WWID)
RETURN(@WWID)
GO
Isn't the return method the right way to send it out?
And then how, in ASP, can I get that value? I thought by using the ADO command object but I can't seem to get that to work.
Here is my stored procedure:CREATE PROCEDURE dbo.ext_wwid2
@ShortID nvarchar(10),
@FName nvarchar(50),
@LName nvarchar(50),
@PhoneNum nvarchar(20),
@DA nvarchar(150),
@CID int
AS
declare @WWID int
SELECT @WWID=(min(convert(int,WWID))-1) FROM i_user;
INSERT INTO i_user (ShortID, FirstName, LastName, PhoneNum,
DomainAddress, CID, LongID, WWID)
VALUES(@ShortID, @FName, @LName, @PhoneNum, @DA, @CID,
@LName+', '+@FName, @WWID)
RETURN(@WWID)
GO
Isn't the return method the right way to send it out?
And then how, in ASP, can I get that value? I thought by using the ADO command object but I can't seem to get that to work.