October 18, 2013 at 4:02 am
Very interesting question, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
October 18, 2013 at 5:28 am
very nice question
October 18, 2013 at 6:18 am
Great question, learned something today.
Got it right but didn't know that by recompiling the table only the statement referencing that table inside the SP would be recompiled!!
I recently watched one of SQLSentry's videos on query tuning in which they stated that if a table was recompiled all "objects" that depend on a table would be recompiled so I figured the whole SP would recompile. My thought was that the entire execution plan would be thrown away and recreated.
Thanks!
---------------
Mel. 😎
October 18, 2013 at 7:47 am
Posting a bit late to the party, as Thursday was a hectic day. Thanks for this very interesting question. I figured there was a command option to force the defaults to be applied to existing records. Thanks to your question, I know what it is. Questions like this help me learn stuff ahead of when I need them, and that's what keeps me coming back to QOTD.
[font="Verdana"]Please don't go. The drones need you. They look up to you.[/font]
Connect to me on LinkedIn
October 18, 2013 at 12:30 pm
Two-pointer... Got it right only because I ran into this about three weeks ago.
Thanks, Mikael!
October 21, 2013 at 5:28 am
Thank you!
Best Regards,
Chris Büttner
October 21, 2013 at 7:19 am
Indeed a great one!!
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
October 22, 2013 at 4:24 pm
Good Question.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
October 24, 2013 at 4:12 am
I cannt get that result...
Manik
You cannot get to the top by sitting on your bottom.
October 31, 2013 at 4:05 am
end of sequence for good answers !
really nice question thanks
December 26, 2014 at 2:35 am
Getting this error:
Msg 208, Level 16, State 1, Procedure GetIt, Line 7
Invalid object name 'T'.
Msg 15165, Level 16, State 1, Procedure sp_recompile, Line 19
Could not find object 'T' or you do not have permission.
Msg 208, Level 16, State 1, Procedure GetIt, Line 7
Invalid object name 'T'.
Thanks.
December 26, 2014 at 4:10 am
SQL-DBA-01 (12/26/2014)
Getting this error:Msg 208, Level 16, State 1, Procedure GetIt, Line 7
Invalid object name 'T'.
Msg 15165, Level 16, State 1, Procedure sp_recompile, Line 19
Could not find object 'T' or you do not have permission.
Msg 208, Level 16, State 1, Procedure GetIt, Line 7
Invalid object name 'T'.
If you blindly copy, paste, and run the code - then yes, you will get that error. The code references a table named "T" that you probably didn't create.
But for answering this QotD, there is no need to run the code. Just reading the question and the code should suffice.
Viewing 12 posts - 46 through 56 (of 56 total)
You must be logged in to reply to this topic. Login to reply