Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

pass array parameter to stored procedure c#

CREATE TYPE dbo.IDList
AS TABLE
(
  ID INT
);
GO

CREATE PROCEDURE dbo.DoSomethingWithEmployees
  @List AS dbo.IDList READONLY
AS
BEGIN
  SET NOCOUNT ON;

  SELECT ID FROM @List; 
END
GO
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #array #parameter #stored #procedure
ADD COMMENT
Topic
Name
2+6 =