SQL Valores de parámetros múltiples
¿Qué opciones están disponibles en SQL 2005 para pasar múltiples valores para almacenar procedimientos?
Posuedo códigos
In C # code
List<string> myApplicationList;
.... (code to assign values)
**Construct parameter list**
Call stored procedure [spSelectMaster] with myApplicationList
Procedimiento almacenado SQL
CREATE PROCEDURE [Ecn].[spSelectMaster]
**Need to declare parameter here but not sure what this would be**
AS
BEGIN
SET NOCOUNT ON
SELECT *
FROM [dbo].[Master]
WHERE [Master].[ApplicationKey] IN (@ApplicationList)
END
GO
Gracias por adelantad