July 11, 2012 at 9:08 am
I've recently been looking at the code behind several system stored procedures such as sys.sp_recompile and sys.sp_change_users_login and I keep seeing some code using %% that I've never seen before. Now this certainly wouldn't be the first time in my life I've had this happen, but in this case I can't find anything in BOL or on line. Not to mention the fact that it won't compile for me.
So the question for one of you experts out there, what exactly does the %% represent and is it something I can make use of myself?
Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]
July 11, 2012 at 9:28 am
I'm pretty sure they're internal use only system procedures that can't be called outside of the context of MS shipped code.
So, no, you can't use them directly AFAIK.
July 11, 2012 at 9:39 am
Internal functions/methods/procs (?) only and you cannot invoke them manually.
You can trace many of the system procs in mssqlsystemresource and get to a dead end where these are called.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply