SQL Server pass parameter to Procedure
Today, My colleague mention his work which how to pass the parameter to the procedure. The workaround as below: 1.Declare a custom table type CREATE TYPE dbo . USER_TABLE_TYPE AS TABLE ( USER_NO VARCHAR ( 8 ) ) 2.C# Declare DataTable and SqlParameter var table = new DataTable(); table.Columns.Add( new DataColumn( "USER_NO" , System.Type.GetType( "System.String" ))); table.Rows.Add(table.NewRow()); table.Rows[0][ "USER_NO" ] = "Abc" ; var par = new SqlParameter ...



