Is it possible to write stored procedure that works with a variable number of parameters? (in SQL Server 2005)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you could write a stored procedure in C# or VB.NET and include it as a SQLCLR stored procedure.
A C# method can accept a
paramsparameter of variable length.The SQL CLR – the inclusion of the .NET runtime into SQL Server – was introduced with SQL Server 2005. See the MSDN docs for more details.