<?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>Tech Blog is Tech &#187; SQL</title>
	<atom:link href="http://www.techblogistech.com/category/sql-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techblogistech.com</link>
	<description>Exploring technology in the modern world</description>
	<lastBuildDate>Sat, 04 May 2013 14:10:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to List Sysadmins in Microsoft SQL Server</title>
		<link>http://www.techblogistech.com/2012/01/how-to-list-sysadmins-in-microsoft-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-list-sysadmins-in-microsoft-sql-server</link>
		<comments>http://www.techblogistech.com/2012/01/how-to-list-sysadmins-in-microsoft-sql-server/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 20:46:23 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ms]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[network service]]></category>
		<category><![CDATA[nt authority]]></category>
		<category><![CDATA[nt service]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[sqlexpress]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[syslogins]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://www.techblogistech.com/?p=756</guid>
		<description><![CDATA[Sometimes I need to know who has system administrator privileges in Microsoft SQL Server. Here&#8217;s a SQL snippet to list &#8230; <span class="more-link"><a href="http://www.techblogistech.com/2012/01/how-to-list-sysadmins-in-microsoft-sql-server/">Continue Reading</a></span>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.techblogistech.com/wp-content/uploads/2012/01/sqlserver.gif" rel="shadowbox[sbpost-756];player=img;"><img src="http://www.techblogistech.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif" data-original="http://www.techblogistech.com/wp-content/uploads/2012/01/sqlserver.gif" alt="Microsoft SQL Server" title="Microsoft SQL Server" width="77" height="77" class="lazy alignright size-full wp-image-757" /><noscript><img src="http://www.techblogistech.com/wp-content/uploads/2012/01/sqlserver.gif" alt="Microsoft SQL Server" title="Microsoft SQL Server" width="77" height="77" class="alignright size-full wp-image-757" /></noscript></a></p>
<p>Sometimes I need to know who has system administrator privileges in Microsoft SQL Server.  Here&#8217;s a SQL snippet to list the sysadmins.</p>
<h2>Listing Sysadmins in MSSQL</h2>
<pre>
SELECT [name] FROM sys.syslogins
WHERE sysadmin=1 AND (isntuser=1 OR isntgroup=1);
</pre>
<h2>Output</h2>
<p>You should see something similar to this in response (depending on your version of Windows, SQL Server, and any changes you have made):</p>
<pre>
[name]
NT AUTHORITY\SYSTEM
NT SERVICE\MSSQL$SQLEXPRESS
NT AUTHORITY\NETWORK SERVICE
</pre>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techblogistech.com/2012/01/how-to-list-sysadmins-in-microsoft-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
