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 «««123

SQL Server Jobs Expand / Collapse
Author
Message
Posted Friday, November 27, 2009 5:48 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, July 19, 2012 12:50 PM
Points: 385, Visits: 170
Hopefully no one is "running" their database maintenance with these jobs on SQL 2005 and 2008 Express . This question smelled tricky from inception, and I am a little disappointed in myself for falling in the trap.

Not much learned here, but at least I refreshed my knowledge of SQL Server 2000 - SQL Server Agent.

Post #825782
Posted Sunday, November 29, 2009 10:47 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, February 11, 2014 4:12 PM
Points: 2,007, Visits: 768
I had to laugh at the LOLCats spelling of Enterprise as Enterprize! Too bad the question wasn't written in LOLCats as well... "I can haz SQL j0bz in which edishunz?"
Post #825893
Posted Monday, November 30, 2009 2:57 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 11:43 AM
Points: 986, Visits: 790
kevin.l.williams (11/27/2009)
I don't think I learned anything useful by getting this question wrong. Who cares if you can create a job in express if it can't be used?


It wouldn't be difficult to write a stored proc to run at startup and thereafter every minute, which kicks the jobs off when scheduled...
Post #826076
Posted Monday, November 30, 2009 3:00 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 11:43 AM
Points: 986, Visits: 790
david.wright-948385 (11/30/2009)
kevin.l.williams (11/27/2009)
I don't think I learned anything useful by getting this question wrong. Who cares if you can create a job in express if it can't be used?


It wouldn't be difficult to write a stored proc to run at startup and thereafter every minute, which kicks the jobs off when scheduled...


Could even add "catch-up" logic to run jobs missed while the instance was down
Post #826078
Posted Monday, November 30, 2009 8:03 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 5:44 AM
Points: 2,897, Visits: 5,980
I would imagine you could even conceive of creating these jobs and then kicking them off on a schedule based on Reporting Services Scheduled Reports, or using the windows task scheduler and an OSQL command or a variety of other resources.

There are a variety of frameworks and applications on codeplex and CodeProject amoung others to get around these same issues...

This is just the first one from Google...
http://www.codeproject.com/KB/database/SQLAgent.aspx


To help us help you read this

For better help with performance problems please read this
Post #826224
Posted Tuesday, December 1, 2009 9:10 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 3:20 PM
Points: 2,607, Visits: 17,916
Crud, I missed it. This is good to know if you have automated maintenance or admin scripts though. I guess if your scripts set up jobs on new servers, the scripts will run successfully on express, but the jobs will never start... and you'll never know that the instance isn't configured like you thought.

Chad
Post #826776
Posted Wednesday, December 9, 2009 10:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: 2 days ago @ 9:58 AM
Points: 2, Visits: 119
(deleted post about "Enterprize" haha-how-funny-but-made-me-answer-wrong and going back to work instead of playing guessing games )

However I want to mention that I prefer to use *.SQL scripts with sqlcmd.exe in Windows Scheduled Tasks to do regular maintenance work and Backups instead of SQL Agent Jobs...
They are independent of SQL Editions and can be maintained without the sluggish Management Studio...
And last but not least they are much easier to deploy on multiple servers without the hassle of dealing with "Maintenance Plan" SSIS Packages and the related issues
Post #831605
Posted Saturday, January 30, 2010 12:03 PM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Yesterday @ 4:54 PM
Points: 8,689, Visits: 9,223
In SQL Server 2008, SSMSE does not support scheduling administrative tasks by using SQL Server Agent (http://msdn.microsoft.com/en-us/library/ms365247.aspx). So in effect there is no support for jobs - they can't be scheduled to run, although obviously you can create jobs using the MSDB stored procs.
In SQL Server 2005 Express Edition, jobs can be created using the MSDB stored procs just as in SQL Server 2008 Express Edition, and they can't be scheduled to run. The support for jobs is exactly as extensive or restrictive in 2008 express as it is in 2005 express, so why does the answer claim you can create them in one but not in the other?
The URL given as explanation is completely useless, it doesn't refer to jobs at all. Also, it doesn't say anything at all about SQL Server 2008, althoough the question (and the answer) both explicitly refer to 2008 as well as to 2005 and the answer makes a claim about them being different in respect to jobs in express edition.
The question and answer are thoroughly misleading, and the reference given for the explanation is completely irrelevant. This doesn't help anyone learn anything, and may even mislead someone into using the wrong edition of SQL Server 2008.
As an earlier commenter said, this sort of thing brings QOTD into disrepute.


Tom
Post #856696
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse