<?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>SysAdmin Valley &#187; SQL Server</title>
	<atom:link href="http://www.sysadminvalley.com/tag/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadminvalley.com</link>
	<description>I might as well write this stuff down so I remember it tomorrow</description>
	<lastBuildDate>Wed, 25 Jan 2012 15:06:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Turning xp_cmdshell on in Microsoft SQL Server</title>
		<link>http://www.sysadminvalley.com/2008/12/12/turning-xp_cmdshell-on-in-microsoft-sql-server/</link>
		<comments>http://www.sysadminvalley.com/2008/12/12/turning-xp_cmdshell-on-in-microsoft-sql-server/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 20:22:19 +0000</pubDate>
		<dc:creator>mshields</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=24</guid>
		<description><![CDATA[No it&#8217;s not Linux related, but it&#8217;s something I came across in my job today. I needed to be able to use xp_cmdshell to have SQL Server execute a dos command, but that command is turned off by default (for security reasons). Open up Query Browser or MS SQL Server Management Studio and log in [...]]]></description>
			<content:encoded><![CDATA[<p>No it&#8217;s not Linux related, but it&#8217;s something I came across in my job today. I needed to be able to use xp_cmdshell to have SQL Server execute a dos command, but that command is turned off by default (for security reasons).</p>
<p>Open up Query Browser or MS SQL Server Management Studio and log in as SA or another privledged user. Open a new query. Run</p>
<blockquote><p>sp_configure</p></blockquote>
<p>Then scroll all the way to the bottom, if xp_cmdshell is there, then skip these 2 steps, otherwise run</p>
<blockquote><p>sp_configure show_advanced_options, 1<br />
reconfigure with override</p></blockquote>
<p>Now run the following commands</p>
<blockquote><p>exec sp_configure xp_cmdshell, 1<br />
reconfigure with override</p></blockquote>
<p>Now you can use xp_cmdshell in all your scripts</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminvalley.com/2008/12/12/turning-xp_cmdshell-on-in-microsoft-sql-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

