Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Managing Jobs Part 3 Expand / Collapse
Author
Message
Posted Saturday, March 8, 2003 12:00 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Yesterday @ 2:45 PM
Points: 6,794, Visits: 1,906
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/awarren/managingjobspart3.asp>http://www.sqlservercentral.com/columnists/awarren/managingjobspart3.asp

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Post #10461
Posted Tuesday, March 11, 2003 10:02 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, October 28, 2014 12:31 PM
Points: 295, Visits: 282
In the article you stated "you'll have to store your code in a file and execute it as an OS task using wscript.exe" but what you really want to use is cscript.exe. This way, all your WScript.Echo calls get sent to the standard output and if you're saving the job step output to a log file, this will get sent to your log file. Unfortunately, if you're using wscript.exe, the Echo tries to pop up a message box which everyone knows is a bad idea on a production system!

Thanks for this series on jobs, it has given me a lot to think about as I have six servers to manage and each one has 30+ databases and lots of jobs to go with them!


Bryant E. Byrd, MCDBA
SQL Server DBA/Systems Engineer
Intellithought, Inc.
bbyrd@intellithought.com


Bryant E. Byrd, BSSE MCDBA MCAD
Business Intelligence Administrator
MSBI Administration Blog
Post #55815
Posted Tuesday, March 11, 2003 11:19 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Yesterday @ 2:45 PM
Points: 6,794, Visits: 1,906
Didnt know that, great tip! Typically I write my code in VB, then port to VBS, so I never have echoes anyway. Glad it's helped. I've got at least one more to go where I'll talk about using exe's to package jobs.

Andy
http://www.sqlservercentral.com/columnists/awarren/




Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Post #55816
Posted Thursday, March 11, 2004 6:34 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 8:21 AM
Points: 207, Visits: 202

Thanks for the series Andy.  I do have two questions though.  We are dealing with getting our DTS jobs under control.  Two things have surfaced just recently.  The first one is scheduling.  We have a lot of requirements for jobs that must run on odd-ball times.  For example, the last working day of the month, sixth to the last working day of the month, first working day of the month, etc.  Up to this point, we have had to programmatically handle this with a VBScript task in our DTS package.  It looks to a table and sees if the current date is in this table.  If so, then continue with package, otherwise stop running.

Management says this is good enough and is looking elsewhere for a scheduler like there is on the mainframe (yuck).  Do you have any suggestions?

Second question, has to do with DTS packages in general.  We have noticed that some of our packages show as a failed job, however we know that the package ran successful based on the outcome.  I haven't had time to investigate this, but my guess is that there is a VBScript task that is returning a controlled failure and for whatever reason DTS/Scheduler is picking this up and reporting the whole package as failed.  Have you seen this before?  If this is the case, then it would seem to me that you should be able to change the packages execution status.

Thanks and look forward to your upcoming topics.




Post #105514
Posted Monday, March 15, 2004 11:54 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, April 4, 2014 8:55 AM
Points: 59, Visits: 225
Interesting article - as it confirms my thoughts on the use of SQLAgent! Looking forward to the next installment


Post #106198
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse