I build a sql-statement and put it in a local variable so i can execute it using sp_executesql, but a local variable cannot be a text or ntext data type, and a varchar data type cannot be used by sp_executesql. So the maximum lenght of the statement cannot be more than nvarchar(4000)...
is there any work around?
Software/Hardware used:
ASKED:
February 6, 2008 4:59 PM
UPDATED:
February 6, 2008 5:32 PM
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.