Home Forums SQL Server 7,2000 T-SQL Limitation of Varchar 8000 in executing a dynamic MDX inside stored Procedure RE: Limitation of Varchar 8000 in executing a dynamic MDX inside stored Procedure

  • When testing dynamic SQL, I've found that replacing the EXEC with a PRINT statement usually makes the problem obvious. In fact, I almost always have two lines, one with EXEC @varname and the other with PRINT @varname, and comment out one or the other depending on whether I am running the script or just debugging it.