Prova a partire da questo esempio (dalla guida di sql server):Originariamente inviato da w_t
e' proprio quello il problema, trovo solo degli esempi di 20/30 righe, e chiaramente non ci capisco nulla,
sono all'inizio delle STORE PROCEDURE,
mica conosci qualche guida di base on-line ???
codice:USE Northwind GO -- Create a procedure that takes one input parameter -- and returns one output parameter and a return code. CREATE PROCEDURE SampleProcedure @EmployeeIDParm INT, @MaxQuantity INT OUTPUT AS -- Do a SELECT using the input parameter. SELECT FirstName, LastName, Title FROM Employees WHERE EmployeeID = @EmployeeIDParm -- Set a value in the output parameter. SELECT @MaxQuantity = MAX(Quantity) FROM [Order Details] GO -- Declare the variables for the return code and output parameter. DECLARE @ReturnCode INT DECLARE @MaxQtyVariable INT -- Execute the stored procedure and specify which variables -- are to receive the output parameter and return code values. EXEC @ReturnCode = SampleProcedure @EmployeeIDParm = 9, @MaxQuantity = @MaxQtyVariable OUTPUT -- Show the values returned. PRINT ' ' PRINT 'Return code = ' + CAST(@ReturnCode AS CHAR(10)) PRINT 'Maximum Quantity = ' + CAST(@MaxQtyVariable AS CHAR(10)) GO
se hai problemi poi chiedi e vediamo di risolverli insieme. ma intanto sforzati di fare da solo ok?
buon lavoro![]()


Rispondi quotando