Michael Zdarsky
2005-12-04 20:33:01 UTC
hello,
i have a stored procedure, which is building a dynamic sql statement with
DECLARE @myStatement NVARCHAR( 4000 )
SET @myStatement = 'blablabla'
and than
i do an
EXEC ( @myStatement )
The problem ist, that the statement now exceeds the maximum length of 4000
nvarchars.
How can I create statements which are longer than 4000?
Switching to varchar is not a good solution.
Currently my statment is about 80.000 characters long!
thank you
michael
i have a stored procedure, which is building a dynamic sql statement with
DECLARE @myStatement NVARCHAR( 4000 )
SET @myStatement = 'blablabla'
and than
i do an
EXEC ( @myStatement )
The problem ist, that the statement now exceeds the maximum length of 4000
nvarchars.
How can I create statements which are longer than 4000?
Switching to varchar is not a good solution.
Currently my statment is about 80.000 characters long!
thank you
michael
--
Michael Zdarsky
Michael Zdarsky