 




<?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>IT Answers &#187; SQL Jobs</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server/sql-jobs/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 22:16:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Schedule SQL job to run and export to CSV file</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/schedule-sql-job-to-run-and-export-to-csv-file/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/schedule-sql-job-to-run-and-export-to-csv-file/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 23:45:47 +0000</pubDate>
		<dc:creator>Sesa</dc:creator>
				<category><![CDATA[CSV]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SSMS 2008]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by Michael Tidmarsh]]></description>
				<content:encoded><![CDATA[New Answer by Michael Tidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/schedule-sql-job-to-run-and-export-to-csv-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How do you set a SQL Server job step status?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-you-set-a-job-step-status/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-do-you-set-a-job-step-status/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 23:28:40 +0000</pubDate>
		<dc:creator>Redwine</dc:creator>
				<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2005 SP3]]></category>
		<category><![CDATA[SQL Server database]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am running SQL Server 2005. I have a job that has six steps to load a database table from an external source. The external source is required to send the file nightly. In system testing I found this is not always the case. I created a batch &#8216;step&#8217; (Step 3) to check if the [...]]]></description>
				<content:encoded><![CDATA[<p>I am running SQL Server 2005. I have a job that has six steps to load a database table from an external source. The external source is required to send the file nightly. In system testing I found this is not always the case. I created a batch &#8216;step&#8217; (Step 3) to check if the file has been sent (see code below). If the file is present I use today’s file. If the file is not present I use last night&#8217;s file (demographic data). I cannot set Step 3 ‘Job Step Properties – Advance tab’ to ‘on failure action’ because logically it will not fail. I want to modify the code to ‘move’ last nights’ file and then indicate the step has failed (force failure – set the job step status property?). Then I would execute the next step (Step 4) that notifies the external source of not receiving the file. I only want to execute Step 4 when I do not receive the file. How do I set the job step status property in Step 3 to indicate &#8216;failure&#8217; after moving the file? Does anyone have any solutions? STEP 3 code @echo off Retailer file transfer. if exist &#8220;E:SQL DatabasesSQL JobsSQL Import DataGPRetailer.del&#8221; goto done echo NO RETAILER FILE TO TRANSFER! :begin move &#8220;E:SQL DatabasesSQL JobsSQL Import DataGPRetailer.old&#8221; &#8220;E:SQL DatabasesSQL JobsSQL Import DataGPRetailer.del&#8221; echo Moved! :done echo Done!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-do-you-set-a-job-step-status/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL 2008 job problem</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-2008-job-problem/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-2008-job-problem/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 15:28:33 +0000</pubDate>
		<dc:creator>DavidHa!!</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL job scheduler]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Windows Server 2003]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a schedule SQL2008 job to export the contents of a table to a text file each day. The job runs fine when I manually execute it, but if the schedule executes it, only 4 or 5 lines of text out of about 13000 are produced to the text file. Any ideas anyone? The [...]]]></description>
				<content:encoded><![CDATA[<p>I have a schedule SQL2008 job to export the contents of a table to a text file each day. The job runs fine when I manually execute it, but if the schedule executes it, only 4 or 5 lines of text out of about 13000 are produced to the text file. Any ideas anyone? The job script follows: EXEC xp_cmdshell &#8216;bcp &#8220;SELECT * FROM pesticide..krspestdata&#8221; queryout &#8220;C:tempPestproducts.txt&#8221; -T -c -r&#8221;^&#8221; -t&#8221;|&#8221;&#8216;</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-2008-job-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Server BCP Utility password</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/microsoft-sql-server-bcp-utility-password/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/microsoft-sql-server-bcp-utility-password/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 19:42:31 +0000</pubDate>
		<dc:creator>Redwine</dc:creator>
				<category><![CDATA[BCP Utility]]></category>
		<category><![CDATA[BCP Utility password]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2005 Enterprise Edition]]></category>
		<category><![CDATA[SQL Server Enterprise Edition]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am executing a Microsoft SQL Server Job that runs a BCP Utility.  The utility loads a table from a file using the &#8216;in&#8217; argument, a format file and an error file.  I have &#8216;hard coded&#8217; the user name and password in the command line using the &#8216;U&#8217; and &#8216;P&#8217; arguments. I am looking for a [...]]]></description>
				<content:encoded><![CDATA[<p>I am executing a Microsoft SQL Server Job that runs a BCP Utility.  The utility loads a table from a file using the &#8216;in&#8217; argument, a format file and an error file.  I have &#8216;hard coded&#8217; the user name and password in the command line using the &#8216;U&#8217; and &#8216;P&#8217; arguments.<br/><br/> I am looking for a method without using the &#8216;hard coded&#8217;, clear text user name and password.<br/><br/> Has anyone done this using the BCP utility?<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/microsoft-sql-server-bcp-utility-password/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 Express</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-server-2005-express/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-server-2005-express/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 06:29:35 +0000</pubDate>
		<dc:creator>Db23</dc:creator>
				<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2005 Express]]></category>
		<category><![CDATA[SQL Server Express]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, Is it worthwhile to schedule optimisation job (update stats and rebuild index) on another server so it can be run on a database that was created on SQL Server 2005 Express from an application installation? I know it is probably a good idea to atleast change the autogrowth setting from 1MB but what about [...]]]></description>
				<content:encoded><![CDATA[<p>Hi, <br/><br/> Is it worthwhile to schedule optimisation job (update stats and rebuild index) on another server so it can be run on a database that was created on SQL Server 2005 Express from an application installation?<br/><br/> I know it is probably a good idea to atleast change the autogrowth setting from 1MB but what about the weekly database optimisation jobs?<br/><br/> Thanks.<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-server-2005-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL DTS package scheduling</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-15/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-15/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 01:53:10 +0000</pubDate>
		<dc:creator>Gic</dc:creator>
				<category><![CDATA[DTS package]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQL stored procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[When a DTS package is scheduled to run at a specific time of day, is it done through the use of a stored procedure or a job?]]></description>
				<content:encoded><![CDATA[<p>When a DTS package is scheduled to run at a specific time of day, is it done through the use of a stored procedure or a job?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My DTS package runs normally, but hangs when run as a SQL Job</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/my-dts-package-runs-normally-but-hangs-when-run-as-a-sql-job/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/my-dts-package-runs-normally-but-hangs-when-run-as-a-sql-job/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 18:01:47 +0000</pubDate>
		<dc:creator>Dring57</dc:creator>
				<category><![CDATA[ActiveX]]></category>
		<category><![CDATA[DTS Local Package]]></category>
		<category><![CDATA[DTS package]]></category>
		<category><![CDATA[Job scheduling]]></category>
		<category><![CDATA[Microsoft Access]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQL Server 2003]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I&#8217;m trying to run an Ms Access .mbd file through a MS SQL 2003 Server. The package runs normally and works when I start the job, but simply hangs when I run the package as a a scheduled job. I&#8217;ve designed a DTS local package as follows: &#8216;********************************************************************** &#8216; Visual Basic ActiveX Script &#8216;************************************************************************ [...]]]></description>
				<content:encoded><![CDATA[<p>Hi, I&#8217;m trying to run an Ms Access .mbd file through a MS SQL 2003 Server. The package runs normally and works when I start the job, but simply hangs when I run the package as a a scheduled job. I&#8217;ve designed a DTS local package as follows:<br />
&#8216;**********************************************************************<br />
&#8216; Visual Basic ActiveX Script<br />
&#8216;************************************************************************<br />
I<br />
Function ConvertIssue3()<br />
Dim objDB<br />
Set objDB = CreateObject(&#8220;Access.Application&#8221;)<br />
objDB.OpenCurrentDatabase(&#8220;H:\dep\Convert\Convert.mdb&#8221;)<br />
objDB.Run &#8220;ConvertIssueSlips&#8221;<br />
objDB.CloseCurrentDatabase<br />
objDB.Quit<br />
ConvertIssue3 = DTSTaskExecResult_Success<br />
End Function</p>
<p>Originally I thought it might be a security issue, but when I change ownership of the job to a user without admin privileges, the job simply fails, where if I make sure the owner is an admin, the job hangs. In the package I changed clicked both boxes in the work flow properties tab: Use ActiveX script and Execute on main package thread. I&#8217;ve tried just about every combination of these options, and I still have the hang problem.</p>
<p>Does anyone have any idea what might be going wrong. I&#8217;ve searched the internet for a while and have yet to come up with a solution. If not, does anyone know of a different way to run the Ms Access file? Any advice will help. Thanks.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/my-dts-package-runs-normally-but-hangs-when-run-as-a-sql-job/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/18 queries in 0.023 seconds using memcached
Object Caching 740/806 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 23:33:18 -->