SQL Server provides a special parameter named table parameter. Using table parameter user can pass entire table as other parameter pass to store procedure. Table parameter is better alternate of temporary table. It reduces unnecessary work and time. Which need to pass more than one row to database for save.
Table Structure
Field
Name
|
Data
Type
|
Roll
|
Int
|
Name
|
Varchar(30)
|
City
|
Varchar(40)
|
Store Procedure
Table Type
CREATE TYPE dbo.myDataType AS TABLE
( roll
int,
name
varchar(30),
city
varchar(30)
);