Viewing post 1 (of 1 total)
Pass Table Name as parameters
DECLARE @sql nvarchar(4000), @objName sysname, @Count int
SET @objName = 'CUSTOMER_DIM'
SET @sql = 'SELECT * FROM ' + @objName
EXEC @Count = sp_executesql
May 7, 2007 at 2:06 am
#704585