﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Steve Jones / Article Discussions / Article Discussions by Author  / Executing a script from SQL Server / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 03:58:48 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Executing a script from SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic1089-32-1.aspx</link><description>That makes sense. I usually pipe to a file and then grep or findstr for any errors.Steve Jonessteve@dkranch.net</description><pubDate>Mon, 26 Nov 2001 08:41:00 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Executing a script from SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic1089-32-1.aspx</link><description>SteveHi Steve, I ment something like this:truncate table infile_list	set @v_commandline = 'dir /B ' + @v_processeddest + '*.unl'&lt;b&gt;insert into infile_listexec @result = master..xp_cmdshell @v_commandline&lt;/b&gt;		Where ive sent the output of the xp_cmdshell to a table for later processing.CheersChris </description><pubDate>Sun, 25 Nov 2001 17:10:00 GMT</pubDate><dc:creator>ckempste</dc:creator></item><item><title>RE: Executing a script from SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic1089-32-1.aspx</link><description>I avoid putting the actual SQL in the steps because it creates a point of maintenance. I'd rather create a stored proc and change that if needed.ckempste:Not sure what you mean? Is this a BULK INSERT variation?Steve Jonessteve@dkranch.net</description><pubDate>Thu, 18 Oct 2001 09:27:00 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Executing a script from SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic1089-32-1.aspx</link><description>Good article steve.  Perhaps worth while mentioning how you can load up sql*server tables from the results of a external command being executed?  I cant remember the exact syntax as its 2am and i had a screaming baby in my ear :) but its a nice trick that i used when having to unzip a heap of files from a dir within t-sql. </description><pubDate>Wed, 17 Oct 2001 13:06:00 GMT</pubDate><dc:creator>ckempste</dc:creator></item><item><title>Executing a script from SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic1089-32-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/sjones/scriptscheduling.asp&gt;http://www.sqlservercentral.com/columnists/sjones/scriptscheduling.asp&lt;/A&gt;</description><pubDate>Sun, 23 Sep 2001 00:00:00 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item></channel></rss>