<?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>xp_instance_regread &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/xp_instance_regread/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 06 Feb 2018 20:20:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: Find the Service Account Name, under SQL services are running</title>
		<link>https://www.dbrnd.com/2018/02/sql-server-find-the-service-account-name-under-sql-services-are-running/</link>
					<comments>https://www.dbrnd.com/2018/02/sql-server-find-the-service-account-name-under-sql-services-are-running/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 21 Feb 2018 16:16:16 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[xp_instance_regread]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7139</guid>

					<description><![CDATA[In this post, I am sharing a script for finding the Service Account Name which used by the SQL Server Windows services like SQL Agent. Using xp_instance_regread, you can find this information. Please check the below script: [crayon-6a9155661eadc461409013/] Result: [crayon-6a9155661eae0236113751/]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&amp;linkname=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&amp;linkname=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&amp;linkname=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&amp;linkname=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&amp;linkname=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&amp;linkname=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-find-the-service-account-name-under-sql-services-are-running%2F&#038;title=SQL%20Server%3A%20Find%20the%20Service%20Account%20Name%2C%20under%20SQL%20services%20are%20running" data-a2a-url="https://www.dbrnd.com/2018/02/sql-server-find-the-service-account-name-under-sql-services-are-running/" data-a2a-title="SQL Server: Find the Service Account Name, under SQL services are running"></a></p><p>In this post, I am sharing a script for finding the Service Account Name which used by the SQL Server Windows services like SQL Agent. </p>
<p>Using xp_instance_regread, you can find this information. </p>
<p><strong>Please check the below script:</strong> </p>
<pre class="crayon-plain-tag">DECLARE @ServiceAccountName varchar(50)
EXECUTE master.dbo.xp_instance_regread
	N'HKEY_LOCAL_MACHINE'
	,N'SYSTEM\CurrentControlSet\Services\MSSQLSERVER'
	,N'ObjectName'
	,@ServiceAccountName OUTPUT
	
SELECT @ServiceAccountName AS ServiceAccountName</pre> </p>
<p><strong>Result:</strong></p><pre class="crayon-plain-tag">ServiceAccountName
------------------------
NT Service\MSSQLSERVER</pre><p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2018/02/sql-server-find-the-service-account-name-under-sql-services-are-running/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server: Script to find the CPU Information from Registry</title>
		<link>https://www.dbrnd.com/2016/11/sql-server-script-to-find-the-cpu-information-from-registry/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 07 Nov 2016 16:16:41 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[processor]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[xp_instance_regread]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1994</guid>

					<description><![CDATA[In this post, I am sharing one SQL Script to find the information about CPU or processor, which is used by the SQL Server. We have deployed different SQL Servers and instances at the client&#8217;s data center. Now our team is required to find and generate a small report about the CPU information of all [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fsql-server-script-to-find-the-cpu-information-from-registry%2F&#038;title=SQL%20Server%3A%20Script%20to%20find%20the%20CPU%20Information%20from%20Registry" data-a2a-url="https://www.dbrnd.com/2016/11/sql-server-script-to-find-the-cpu-information-from-registry/" data-a2a-title="SQL Server: Script to find the CPU Information from Registry"></a></p><p>In this post, I am sharing one SQL Script to find the information about CPU or processor, which is used by the SQL Server. </p>
<p>We have deployed different SQL Servers and instances at the client&#8217;s data center.<br />
Now our team is required to find and generate a small report about the CPU information of all the running SQL Server. </p>
<p>Using xp_instance_regread, we can find the CPU information from the registry. </p>
<pre class="crayon-plain-tag">EXEC xp_instance_regread
'HKEY_LOCAL_MACHINE',
'HARDWARE\DESCRIPTION\System\CentralProcessor\0',
'ProcessorNameString';</pre> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
