Thank this author by sharing:
By Lebrasseur Jean-Pierre, 2009/12/28
Select relevant Database
Change table from customer to whatever table name you need
Execute
Then use the result to generate the parameter list for your SP
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.
Join us!
Steve Jones Editor, SQLServerCentral.com