Home Forums Programming General Stored Procedure with non-qualified objects RE: Stored Procedure with non-qualified objects

  • davidc (5/8/2009)


    Dynamic SQL does indeed work. However, the report stored proc cannot be executed in that manner. It has too many statements.

    Why do you say that? I've done reports in dynamic SQL with over 100,000 lines without any real problem.

    We were hoping for a system solution rather than a programming solution.

    I don't know of any non-code solution and I doubt that there is one. T-SQL just isn't very flexible about this, post-compile.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]