<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=SQL_Server%2FT-SQL_Tutorial%2FSystem_Settings%2Fxp_cmdshell</id>
		<title>SQL Server/T-SQL Tutorial/System Settings/xp cmdshell - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=SQL_Server%2FT-SQL_Tutorial%2FSystem_Settings%2Fxp_cmdshell"/>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=SQL_Server/T-SQL_Tutorial/System_Settings/xp_cmdshell&amp;action=history"/>
		<updated>2026-05-25T14:55:54Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.sqle.ru/index.php?title=SQL_Server/T-SQL_Tutorial/System_Settings/xp_cmdshell&amp;diff=6610&amp;oldid=prev</id>
		<title> в 13:46, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=SQL_Server/T-SQL_Tutorial/System_Settings/xp_cmdshell&amp;diff=6610&amp;oldid=prev"/>
				<updated>2010-05-26T13:46:16Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:46, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.sqle.ru/index.php?title=SQL_Server/T-SQL_Tutorial/System_Settings/xp_cmdshell&amp;diff=6611&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=SQL_Server/T-SQL_Tutorial/System_Settings/xp_cmdshell&amp;diff=6611&amp;oldid=prev"/>
				<updated>2010-05-26T10:23:49Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Granting PUBLIC permissions will cause you grief.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
The syntax of this stored procedure is xp_cmdshell &amp;quot;command&amp;quot;[,no_output]   &lt;br /&gt;
 &lt;br /&gt;
xp_cmdshell &amp;quot;dir c:\&amp;quot;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== output the contents of the root directory of the server to the console.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
5&amp;gt;&lt;br /&gt;
6&amp;gt;&lt;br /&gt;
7&amp;gt;     DECLARE @myresult int&lt;br /&gt;
8&amp;gt;     EXEC @myresult = xp_cmdshell &amp;quot;dir c:\tim.txt&amp;quot;&lt;br /&gt;
9&amp;gt;     IF (@myresult = 0)&lt;br /&gt;
10&amp;gt;         PRINT &amp;quot;Success&amp;quot;&lt;br /&gt;
11&amp;gt;     ELSE&lt;br /&gt;
12&amp;gt;         PRINT &amp;quot;Failure&amp;quot;&lt;br /&gt;
13&amp;gt;     GO&lt;br /&gt;
Msg 15281, Level 16, State 1, Server J\SQLEXPRESS, Procedure xp_cmdshell, Line 1&lt;br /&gt;
SQL Server blocked access to procedure &amp;quot;sys.xp_cmdshell&amp;quot; of component &amp;quot;xp_cmdshell&amp;quot; because this component is turned off as part of the security configuration for this server. A system administrator c&lt;br /&gt;
an enable the use of &amp;quot;xp_cmdshell&amp;quot; by using sp_configure. For more information about enabling &amp;quot;xp_cmdshell&amp;quot;, see &amp;quot;Surface Area Configuration&amp;quot; in SQL Server Books Online.&lt;br /&gt;
Failure&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>