• Hugo Kornelis (2/14/2012)


    cengland0 (2/14/2012)


    Technically, both statements could execute if you just happened to have a stored procedure with the name [use master dbcc showfilestats]. I know, this is crazy but did want to be the first to mention it 🙂

    I'm sorry, but you are too late. Henrico already covered that crazy possibility in the explanation of the question: "SQL will assume '@sqlstring' is a Stored Procedure and will fail, assuming it doesn't exist." (emphasis mine)

    😀

    Gee thanks. You had to ruin my fun didn't you? 😉