﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Variable Parameter list for for procedure / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 17:47:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Variable Parameter list for for procedure</title><link>http://www.sqlservercentral.com/Forums/Topic1381492-391-1.aspx</link><description>I checked default template does not cater to my changing parameter reuirement. Also it is not showing me how to make table type paramter as optional</description><pubDate>Tue, 06 Nov 2012 06:52:07 GMT</pubDate><dc:creator>Krishna1</dc:creator></item><item><title>RE: Variable Parameter list for for procedure</title><link>http://www.sqlservercentral.com/Forums/Topic1381492-391-1.aspx</link><description>[quote][b]shilpaprele (11/6/2012)[/b][hr]Dear AllI need to create procedure with variable parmaeter list. I am trying to achive it through table value parameter.Is it the correct approch?Also I need this parameter to be optional. But when i give folloing syntax i get errorCREATE PROCEDURE [P1] @param1  VARCHAR(40), @ParameterTable  ParameterTable READONLY = NULLas.....[/quote]Table-valued parameter is the best for passing table-like data, but not variable parameter list.Let say you want to pass multiple Customer Id's together with relevant Customer Names. Table-valued parameter is upto this task.But if you want to pass list of different parameters eg. not-related to each other and having different datatype, I would recommend using XML.</description><pubDate>Tue, 06 Nov 2012 06:03:54 GMT</pubDate><dc:creator>Eugene Elutin</dc:creator></item><item><title>RE: Variable Parameter list for for procedure</title><link>http://www.sqlservercentral.com/Forums/Topic1381492-391-1.aspx</link><description>You can use default Stored Procedure Template from Template Explorer.it will help youSSMS &amp;gt; View &amp;gt; Template Explorer &amp;gt; Stored Procedure</description><pubDate>Tue, 06 Nov 2012 05:01:14 GMT</pubDate><dc:creator>sanket kokane</dc:creator></item><item><title>Variable Parameter list for for procedure</title><link>http://www.sqlservercentral.com/Forums/Topic1381492-391-1.aspx</link><description>Dear AllI need to create procedure with variable parmaeter list. I am trying to achive it through table value parameter.Is it the correct approch?Also I need this parameter to be optional. But when i give folloing syntax i get errorCREATE PROCEDURE [P1] @param1  VARCHAR(40), @ParameterTable  ParameterTable READONLY = NULLas.....</description><pubDate>Tue, 06 Nov 2012 04:46:20 GMT</pubDate><dc:creator>Krishna1</dc:creator></item></channel></rss>