This is one of the issue I came across while developing a window service for updating data in bulk. But this was developed with the complete support my friends and all the credits goes to them ;).
Stored Procedure
CREATE PROCEDURE MySP
@TypeDataTable AS
[MyType] READONLY
AS
BEGIN
//Your logic
END
User defined Type
CREATE TYPE MyType AS TABLE(
[Column] [DataType] NULL/NOT NULL,
...
)
From code call the same we usually call the stored procs by passing the DataTable object as paramater.
Comments