komal145 (11/2/2012)
EXEC sp_executesql @sqlGetting ERROr :
Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
The error says exactly what the problem is here. Change @SQL to be an NVARCHAR variable instead of VARCHAR.
--Jeff Moden
Change is inevitable... Change for the better is not.