Dropping a cached plan?

  • I think I finally figured the problem out!

    For some stupid reason I had @Sql = @sql + @sql + @Variable in 8 places! (waaaaay towards the bottom)

    I caught it after printing the results of @SQL and pasting them into word and realized I saw the original select columns way down in the list again...I was like huh?

    So yeah suffice to say Word said I have over 40k characters filled in. It works fine now...sorry for the confusion and thanks for the help!

    Link to my blog http://notyelf.com/

  • Ok I do have the code fixed now but I am still running into the problem towards the end of my code. I pasted into word and it says there are 9,593 characters with spaces and 8507 characters with no spaces (yes characters not words).

    Is there a setting I need to adjust or another way I can do this? I have done just about all I can think of to get this to work.

    Link to my blog http://notyelf.com/

  • That is strange I am only returning some 6k+ characters and I still get a truncated (though very close to the end now) sql statement.

    Is it possible because I am using a CTE within the sql statement that I am getting lesser characters returned?

    Link to my blog http://notyelf.com/

  • shannonjk (1/6/2010)


    That is strange I am only returning some 6k+ characters and I still get a truncated (though very close to the end now) sql statement.

    That's possibly a management studio setting. Check in the Options menu.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 4 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic. Login to reply