Is it possible to query for the SQL Server 2008 service startup parameter values using T-SQL? I’m specifically looking for the -g parameter that indicates how much memory that SQL Server will leave available for memory allocations within the SQL Server process, but outside the SQL Server memory pool [msdn reference].
Share
You can use a CLR procedure and query the SCM for the current setting. Or look it up in the registry with xp_regread. Both will get you the configured value, which may not be the runtime value.
But there is a caveat, namely that -g is such an obsolete flag that nobody should be using it and you shouldn’t be looking for it. Is only relevant for x86 32bit platforms and 32 bit is dead.