March 21, 2004 at 6:34 am
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/dasanka/w
My Blog:
March 23, 2004 at 10:54 am
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!
March 23, 2004 at 12:00 pm
awesome article
gr8 way for getting values out of the registry.
Thanks.
March 23, 2004 at 10:51 pm
Thankx all .but credit should also goes to Frank Kalis as well.
My Blog:
March 25, 2004 at 1:08 am
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/[/url]
March 25, 2004 at 1:28 am
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:
March 25, 2004 at 1:38 am
Please don't get me wrong. My reply wasn't meant to be criticism, but rather calling attention on this nasty side-effect of using something undocumented.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 25, 2004 at 1:41 am
No Frank. It is no criticism but it is a fact
My Blog:
March 28, 2004 at 11:22 pm
Thankx all for your comments which help me lot
My Blog:
March 23, 2005 at 8:44 am
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.
October 17, 2007 at 3:20 am
Its a great article and thanks for sharing it...
I wonder, is there's any way of knowing the existence of a key before reading it?
--Ramesh
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply