Viewing 15 posts - 691 through 705 (of 7,187 total)
Is the job running to the schedule that appears to be disabled (with the same frequency and at the same times)? Have you run the sysjobhistory query I posted earlier...
August 9, 2018 at 4:03 am
Not that many rows, then. But not much we can do without the execution plan. Have you used sp_whoisactive to check for blocking while the query is running?
John
August 9, 2018 at 3:55 am
This will ready your table only once, instead of twice as your query does. I think there'll be extra sort operations, though, so you'll want to test whether the IO...
August 9, 2018 at 3:51 am
August 9, 2018 at 3:33 am
This will tell you who is running the job - that may give you a clue to how the job is being run. (Don't forget to substitute in the name...
August 9, 2018 at 3:25 am
Javed
Please post the actual (not estimated) execution plan. How many rows are in each table?
John
August 9, 2018 at 2:30 am
SELECT
a.name AS AlertName
, j.name AS JobName
, s.step_id
, s.command
FROM msdb.dbo.sysalerts a
JOIN msdb.dbo.sysjobs j ON a.job_id = j.job_id
JOIN msdb.dbo.sysjobsteps s ON j.job_id = s.job_id
August 9, 2018 at 2:25 am
Mike
The best way to find out is to try it! From my experience, the answer to all your questions is yes.
John
August 3, 2018 at 8:55 am
Jon
No, you can't do that, since MTH_NUM is not guaranteed to have been evaluated when the CASE expression is evaluated. You'll either need to repeat the whole DATEPART...
August 2, 2018 at 7:18 am
August 1, 2018 at 2:12 am
Sanaz
Go to Linked Servers in Object Explorer, then open Object Explorer Details you can then select all the linked servers and hence script them out in one go. ...
August 1, 2018 at 1:54 am
Why would anyone do that?! I think it's going to be messy. You can use the sys.sql_modules catalog view to find all objects that have the word "customer" in their...
July 30, 2018 at 6:58 am
Lynn Pettis - Tuesday, July 10, 2018 9:21 AMwhy test both MIN and MAX to be the same?
Because Open...
July 10, 2018 at 9:26 am
SELECT
PartNo
, MAX(Status) AS MaxStatus
, MIN(Status) AS MinStatus
FROM Parts
GROUP BY PartNo
HAVING MaxStatus = 'Open'
AND MinStatus = 'Open'';
John
July 10, 2018 at 9:15 am
Yes, you can do that, but you have to use "LIKE" instead of "=". What are your expected results?
John
July 6, 2018 at 8:17 am
Viewing 15 posts - 691 through 705 (of 7,187 total)