It works fine for me:DECLARE @test uniqueidentifierEXEC test 1,1, @test OUTPUTEXEC test2 @testtest stored is the first stored proc that you mention and test2 is the second. Here is all of the code that I used to test it:CREATE PROC test(@LoginID INT, @SalonID INT, @GuidID UNIQUEIDENTIFIER OUTPUT)ASSET @GuidID = NEWID()INSERT INTO NetSessionInterface (LoginID, SalonID, GuidID)VALUES(@LoginID, @SalonID, @GuidID)RETURNGOCREATE PROC test2(@GuidID UNIQUEIDENTIFIER)ASSELECT loginid, salonid, guididFROM NetSessionInterfaceWHERE GuidID = @GuidIDRETURNGOSET NOCOUNT ONCREATE TABLE NetSessionInterface(loginid INT NOT NULL,salonid INT NOT NULL,guidid UNIQUEIDENTIFIER NOT NULL)GODECLARE @test UNIQUEIDENTIFIEREXEC test 1,1, @test OUTPUTEXEC test2 @testDROP PROC test2DROP PROC testDROP TABLE NetSessionInterface
Tara