<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Instance &#8211; SQLpowered.com</title>
	<atom:link href="https://sqlpowered.com/script-category/instance/feed/" rel="self" type="application/rss+xml" />
	<link>https://sqlpowered.com</link>
	<description>SQL Server + BI</description>
	<lastBuildDate>Sun, 18 Jan 2026 21:31:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://sqlpowered.com/wp-content/uploads/2020/07/FavIcon-e1594067873682-99x100.png</url>
	<title>Instance &#8211; SQLpowered.com</title>
	<link>https://sqlpowered.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>List all instance properties using SERVERPROPERTY()</title>
		<link>https://sqlpowered.com/script/list-all-instance-properties-using-serverproperty/</link>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Sun, 18 Jan 2026 21:29:52 +0000</pubDate>
				<guid isPermaLink="false">https://sqlpowered.com/?post_type=script&#038;p=5788</guid>

					<description><![CDATA[Updated for SQL Server 2025. SELECT 'BuildClrVersion' ,SERVERPROPERTY(N'BuildClrVersion') UNION ALL SELECT 'Collation' ,SERVERPROPERTY(N'Collation') UNION ALL SELECT 'CollationID' ,SERVERPROPERTY(N'CollationID') UNION ALL SELECT 'ComparisonStyle' ,SERVERPROPERTY(N'ComparisonStyle') UNION ALL SELECT 'ComputerNamePhysicalNetBIOS' ,SERVERPROPERTY(N'ComputerNamePhysicalNetBIOS') UNION ALL SELECT 'Edition' ,SERVERPROPERTY(N'Edition') UNION ALL SELECT 'EditionID' ,SERVERPROPERTY(N'EditionID') UNION ALL SELECT 'EngineEdition' ,SERVERPROPERTY(N'EngineEdition') UNION ALL SELECT 'FilestreamConfiguredLevel' ,SERVERPROPERTY(N'FilestreamConfiguredLevel') UNION ALL...]]></description>
										<content:encoded><![CDATA[<p>Updated for SQL Server 2025.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="sql">SELECT  'BuildClrVersion'                        ,SERVERPROPERTY(N'BuildClrVersion')                        UNION ALL
SELECT  'Collation'                              ,SERVERPROPERTY(N'Collation')                              UNION ALL
SELECT  'CollationID'                            ,SERVERPROPERTY(N'CollationID')                            UNION ALL
SELECT  'ComparisonStyle'                        ,SERVERPROPERTY(N'ComparisonStyle')                        UNION ALL
SELECT  'ComputerNamePhysicalNetBIOS'            ,SERVERPROPERTY(N'ComputerNamePhysicalNetBIOS')            UNION ALL
SELECT  'Edition'                                ,SERVERPROPERTY(N'Edition')                                UNION ALL
SELECT  'EditionID'                              ,SERVERPROPERTY(N'EditionID')                              UNION ALL
SELECT  'EngineEdition'                          ,SERVERPROPERTY(N'EngineEdition')                          UNION ALL
SELECT  'FilestreamConfiguredLevel'              ,SERVERPROPERTY(N'FilestreamConfiguredLevel')              UNION ALL
SELECT  'FilestreamEffectiveLevel'               ,SERVERPROPERTY(N'FilestreamEffectiveLevel')               UNION ALL
SELECT  'FilestreamShareName'                    ,SERVERPROPERTY(N'FilestreamShareName')                    UNION ALL
SELECT  'HadrManagerStatus'                      ,SERVERPROPERTY(N'HadrManagerStatus')                      UNION ALL
SELECT  'InstanceDefaultBackupPath'              ,SERVERPROPERTY(N'InstanceDefaultBackupPath')              UNION ALL
SELECT  'InstanceDefaultDataPath'                ,SERVERPROPERTY(N'InstanceDefaultDataPath')                UNION ALL
SELECT  'InstanceDefaultLogPath'                 ,SERVERPROPERTY(N'InstanceDefaultLogPath')                 UNION ALL
SELECT  'InstanceName'                           ,SERVERPROPERTY(N'InstanceName')                           UNION ALL
SELECT  'IsAdvancedAnalyticsInstalled'           ,SERVERPROPERTY(N'IsAdvancedAnalyticsInstalled')           UNION ALL
SELECT  'IsBigDataCluster'                       ,SERVERPROPERTY(N'IsBigDataCluster')                       UNION ALL
SELECT  'IsClustered'                            ,SERVERPROPERTY(N'IsClustered')                            UNION ALL
SELECT  'IsExternalAuthenticationOnly'           ,SERVERPROPERTY(N'IsExternalAuthenticationOnly')           UNION ALL
SELECT  'IsExternalGovernanceEnabled'            ,SERVERPROPERTY(N'IsExternalGovernanceEnabled')            UNION ALL
SELECT  'IsFullTextInstalled'                    ,SERVERPROPERTY(N'IsFullTextInstalled')                    UNION ALL
SELECT  'IsHadrEnabled'                          ,SERVERPROPERTY(N'IsHadrEnabled')                          UNION ALL
SELECT  'IsIntegratedSecurityOnly'               ,SERVERPROPERTY(N'IsIntegratedSecurityOnly')               UNION ALL
SELECT  'IsLocalDB'                              ,SERVERPROPERTY(N'IsLocalDB')                              UNION ALL
SELECT  'IsPolyBaseInstalled'                    ,SERVERPROPERTY(N'IsPolyBaseInstalled')                    UNION ALL
SELECT  'IsServerSuspendedForSnapshotBackup'     ,SERVERPROPERTY(N'IsServerSuspendedForSnapshotBackup')     UNION ALL
SELECT  'IsSingleUser'                           ,SERVERPROPERTY(N'IsSingleUser')                           UNION ALL
SELECT  'IsTempDbMetadataMemoryOptimized'        ,SERVERPROPERTY(N'IsTempDbMetadataMemoryOptimized')        UNION ALL
SELECT  'IsXTPSupported'                         ,SERVERPROPERTY(N'IsXTPSupported')                         UNION ALL
SELECT  'LCID'                                   ,SERVERPROPERTY(N'LCID')                                   UNION ALL
SELECT  'LicenseType'                            ,SERVERPROPERTY(N'LicenseType')                            UNION ALL
SELECT  'MachineName'                            ,SERVERPROPERTY(N'MachineName')                            UNION ALL
SELECT  'NumLicenses'                            ,SERVERPROPERTY(N'NumLicenses')                            UNION ALL
SELECT  'PathSeparator'                          ,SERVERPROPERTY(N'PathSeparator')                          UNION ALL
SELECT  'ProcessID'                              ,SERVERPROPERTY(N'ProcessID')                              UNION ALL
SELECT  'ProductBuild'                           ,SERVERPROPERTY(N'ProductBuild')                           UNION ALL
SELECT  'ProductBuildType'                       ,SERVERPROPERTY(N'ProductBuildType')                       UNION ALL
SELECT  'ProductLevel'                           ,SERVERPROPERTY(N'ProductLevel')                           UNION ALL
SELECT  'ProductMajorVersion'                    ,SERVERPROPERTY(N'ProductMajorVersion')                    UNION ALL
SELECT  'ProductMinorVersion'                    ,SERVERPROPERTY(N'ProductMinorVersion')                    UNION ALL
SELECT  'ProductUpdateLevel'                     ,SERVERPROPERTY(N'ProductUpdateLevel')                     UNION ALL
SELECT  'ProductUpdateReference'                 ,SERVERPROPERTY(N'ProductUpdateReference')                 UNION ALL
SELECT  'ProductUpdateType'                      ,SERVERPROPERTY(N'ProductUpdateType')                      UNION ALL
SELECT  'ProductVersion'                         ,SERVERPROPERTY(N'ProductVersion')                         UNION ALL
SELECT  'ResourceLastUpdateDateTime'             ,SERVERPROPERTY(N'ResourceLastUpdateDateTime')             UNION ALL
SELECT  'ResourceVersion'                        ,SERVERPROPERTY(N'ResourceVersion')                        UNION ALL
SELECT  'ServerName'                             ,SERVERPROPERTY(N'ServerName')                             UNION ALL
SELECT  'SqlCharSet'                             ,SERVERPROPERTY(N'SqlCharSet')                             UNION ALL
SELECT  'SqlCharSetName'                         ,SERVERPROPERTY(N'SqlCharSetName')                         UNION ALL
SELECT  'SqlSortOrder'                           ,SERVERPROPERTY(N'SqlSortOrder')                           UNION ALL
SELECT  'SqlSortOrderName'                       ,SERVERPROPERTY(N'SqlSortOrderName')                       UNION ALL
SELECT  'SuspendedDatabaseCount'                 ,SERVERPROPERTY(N'SuspendedDatabaseCount');
</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Move TempDb Files to a New Location</title>
		<link>https://sqlpowered.com/script/move-tempdb-files-to-a-new-location/</link>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Wed, 23 Oct 2024 06:13:10 +0000</pubDate>
				<guid isPermaLink="false">https://sqlpowered.com/?post_type=script&#038;p=5727</guid>

					<description><![CDATA[SELECT 'ALTER DATABASE [tempdb] MODIFY FILE ' + CHAR(13) + ' (NAME = [' + [name] + '], FILENAME = ''D:\NewPath\' + [name] + CASE [type] WHEN 1 THEN '.ldf' ELSE '.mdf' END + ''');' FROM [sys].[master_files] WHERE [database_id] = DB_ID(N'tempdb')]]></description>
										<content:encoded><![CDATA[<pre class="EnlighterJSRAW" data-enlighter-language="sql">SELECT 
	'ALTER DATABASE [tempdb] MODIFY FILE ' + CHAR(13) + 
	'   (NAME = [' + [name] + '], FILENAME = ''D:\NewPath\' + [name] + CASE [type] WHEN 1 THEN '.ldf' ELSE '.mdf' END + ''');'
FROM [sys].[master_files]
WHERE [database_id] = DB_ID(N'tempdb')</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Get disk free space on physical host</title>
		<link>https://sqlpowered.com/script/get-disk-free-space-on-physical-host/</link>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Fri, 02 Apr 2021 10:44:35 +0000</pubDate>
				<guid isPermaLink="false">https://sqlpowered.com/?post_type=script&#038;p=5033</guid>

					<description><![CDATA[Get a list of all volumes on the physical host running SQL Server instance, their allocated/free space in GB, and few more properties. This is an alternative to run EXEC xp_fixedDrives because that won&#8217;t work on a Linux-hosted instance. Note: This script can&#8217;t be executed on the Azure SQL database...]]></description>
										<content:encoded><![CDATA[<p>Get a list of all volumes on the physical host running SQL Server instance, their allocated/free space in GB, and few more properties. This is an alternative to run <code class="EnlighterJSRAW" data-enlighter-language="sql">EXEC xp_fixedDrives</code> because that won&#8217;t work on a Linux-hosted instance.</p>
<p>Note: This script can&#8217;t be executed on the Azure SQL database because these two system objects aren&#8217;t available there.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="sql">SELECT DISTINCT 
	[vs].[volume_mount_point] [Drive], 
	[vs].[file_system_type] [File System Type], 
	[vs].[logical_volume_name] [Logical Volumn Name], 
	CONVERT(DECIMAL(18,2), [vs].[total_bytes] / 1073741824.0) AS [Total_Size_GB],
	CONVERT(DECIMAL(18,2), [vs].[available_bytes] / 1073741824.0) AS [Available_Size_GB],  
	CAST(CAST([vs].[available_bytes] AS FLOAT)/ CAST([vs].[total_bytes] AS FLOAT) AS DECIMAL(18,2)) * 100 AS [Space_Free_Perc],
	[vs].[supports_compression] [Supports_Compression], 
	[vs].[supports_alternate_streams] [Supports_Alternate_Streams], 
	[vs].[supports_sparse_files] [Supports_Sparse_Files], 
	[vs].[is_read_only] [Is_Read_Only], 
	[vs].[is_compressed] [Is_Compressed]
FROM sys.master_files [mf]
	CROSS APPLY sys.dm_os_volume_stats([database_id], [file_id]) [vs]</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Get instance TCP port</title>
		<link>https://sqlpowered.com/script/get-instance-tcp-port/</link>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Fri, 09 Mar 2018 14:08:58 +0000</pubDate>
				<guid isPermaLink="false">https://sqlpowered.com/?post_type=script&#038;p=2393</guid>

					<description><![CDATA[USE master GO xp_readerrorlog 0, 1, N'Server is listening on', 'any', NULL, NULL, N'asc' GO]]></description>
										<content:encoded><![CDATA[<pre class="lang:tsql decode:true  ">USE master
GO
xp_readerrorlog 0, 1, N'Server is listening on', 'any', NULL, NULL, N'asc' 
GO</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Get Services and Service Accounts</title>
		<link>https://sqlpowered.com/script/get-services-and-service-accounts/</link>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Fri, 09 Mar 2018 13:22:01 +0000</pubDate>
				<guid isPermaLink="false">https://sqlpowered.com/?post_type=script&#038;p=2380</guid>

					<description><![CDATA[SELECT servicename, service_account FROM [sys].[dm_server_services] GO]]></description>
										<content:encoded><![CDATA[<pre class="lang:tsql decode:true  ">SELECT servicename, service_account
FROM [sys].[dm_server_services]
GO</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
