|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:30 PM
Points: 912,
Visits: 198
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, March 18, 2005 8:25 AM
Points: 37,
Visits: 1
|
|
Great article Dinesh! I agree with you that accessing registry keys from SQL Server scripts/stored procedures is not something that you will do often, but is great to know that you actually "can" do it if you want. I think that maybe this extended stored procedures can be useful as a good alternative to logged operations (compared to logging in the event log or somewhere else) or to keep configuration information in the registry (buffer size for cursors, type of locking, or whatever you can think of) by pointing your sp's to read to a particular registry. Then, if you want to try your sp's with different configurations you don't have to modify all of them, simply change that registry key... Other ideas would be to keep on the registry the name of files where your stored procedures will write debugging information. Then, if you decide to move your debugging files somewhere else, just change the registry. The Isn't weird?... you can even change the desktop background from a stored procedure!.. the limits of the registry key are endless if you know how to use it... Thanks!
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, July 27, 2004 7:00 PM
Points: 99,
Visits: 1
|
|
awesome article gr8 way for getting values out of the registry. Thanks.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:30 PM
Points: 912,
Visits: 198
|
|
Thankx all .but credit should also goes to Frank Kalis as well.
My Blog: http://dineshasanka.spaces.live.com/
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 11:48 PM
Points: 5,955,
Visits: 277
|
|
Thanks Dinesh!
There is just one thing I like to add. All of these procedures are undocumented and subject to change anytime at Microsoft's will. I would really carefully think about this BEFORE writing production code with these procedures.
Nonetheless I agree it's good to know that there is a way, but then again there are also many other ways. I would prefer doing this in the application layer.
-- Frank Kalis Microsoft SQL Server MVP Webmaster: http://www.insidesql.org/blogs My blog: http://www.insidesql.org/blogs/frankkalis/
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:30 PM
Points: 912,
Visits: 198
|
|
Yes Frank, I fully agree with you. Yes I has to be used as the LAST OPTION. Sorry I didn't mention that in my article.
My Blog: http://dineshasanka.spaces.live.com/
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 11:48 PM
Points: 5,955,
Visits: 277
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:30 PM
Points: 912,
Visits: 198
|
|
No Frank. It is no criticism but it is a fact
My Blog: http://dineshasanka.spaces.live.com/
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:30 PM
Points: 912,
Visits: 198
|
|
Thankx all for your comments which help me lot
My Blog: http://dineshasanka.spaces.live.com/
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Monday, November 12, 2007 6:32 AM
Points: 62,
Visits: 3
|
|
Great article, thanks for sharing it! It's probably important to point out that it is the server's registry that is being used, rather than the client's.
|
|
|
|