Archives: August 2011
As a follow-up to my SERVERPROPERTY() post, this is a quick script to grab all the SESSIONPROPERTY() values from your current session in a table. Useful when you forget what the propertyname options are. Properties obtained from http://msdn.microsoft.com/en-us/library/ms175001.aspx.
DECLARE @props TABLE (propertyname sysname PRIMARY KEY) INSERT
Demo files from my presentation at Dallas Tech Fest 2011.