Pass Arrays to SQL Functions from .NET C# -


There is no scope to pass an array from .NET C # to SQL Functions.

Honestly.

Honestly.

And can you show me how?

With SQL Server 2008, yes, using. With SQL Server 2005, you have to wrap the data in XML and it must be dismantled using XQuery in its T-SQL function.

NB: You can only pass table valuable parameters for stored procs - not to work.

From the link:

  // Configure SqlCommand and Table-Honor Parameters. SqlCommand insertCommand = new SqlCommand ("usp_InsertCategories", connection); InsertCommand.CommandType = CommandType.StoredProcedure; SqlParameter tvpParam = insertCommand.Parameters.AddWithValue ("@tvpNewCategories", Detader); TvpParam.SqlDbType = SqlDbType.structured;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -