I think you will have to go with
execute(@MySQLString)
If you want to go longer than 4000. sp_executesql requires nvarchar..
Hope this helps,
Alex
[small]----signature below----[/small]
With all due respect, Don Bot, I don't think we should rely on an accident happening. Let's kill him ourselves.
Ignorance of certain subjects is a great part of wisdom