PDA

View Full Version : Problem with stored procedure


renfaireman
09-13-2003, 06:31 AM
Okay, I based this procedure from the microsoft IBuySpy starter kit. But All I am getting for returns is null. Help!

CREATE PROCEDURE Test
(
@TransID int,
@Fullname nvarchar(70) OUTPUT
)
AS
SELECT @FullName = FullName
FROM Actors
WHERE TransID = @TransID
GO

bruce
09-13-2003, 09:12 AM
what are you trying to do?


[b]quote:Originally posted by renfaireman

Okay, I based this procedure from the microsoft IBuySpy starter kit. But All I am getting for returns is null. Help!

CREATE PROCEDURE Test
(
@TransID int,
@Fullname nvarchar(70) OUTPUT
)
AS
SELECT @FullName = FullName
FROM Actors
WHERE TransID = @TransID
GO

</blockquote id="quote"></font id="quote">

Darrick
09-18-2003, 08:33 AM
CREATE PROCEDURE Test

@TransID int

AS
SELECT FullName
FROM Actors
WHERE TransID = @TransID
GO





[b]quote:Originally posted by renfaireman

Okay, I based this procedure from the microsoft IBuySpy starter kit. But All I am getting for returns is null. Help!

CREATE PROCEDURE Test
(
@TransID int,
@Fullname nvarchar(70) OUTPUT
)
AS
SELECT @FullName = FullName
FROM Actors
WHERE TransID = @TransID
GO

</blockquote id="quote"></font id="quote">