Problem with stored procedure

Discussion in 'Databases' started by renfaireman, Sep 13, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    what are you trying to do?


    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">
     
  3. CREATE PROCEDURE Test

    @TransID int

    AS
    SELECT FullName
    FROM Actors
    WHERE TransID = @TransID
    GO





    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">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page