I went on a .NET course and noticed that when .NET uses dynamic SQL it actually wraps up the SQL and submits it as an sp_executesql command.
I don't actually have access to VS.NET but does this mean the maximum length of dynamic SQL that can be submitted from a .NET app is 4000 characters?