Viewing 15 posts - 1,366 through 1,380 (of 7,191 total)
Where you have two events with the same CompletedDate, how do you determine which one comes first?
John
July 17, 2017 at 4:58 am
You've been around long enough to know that you haven't provided nearly enough information. What does the job do? What makes you think it's hung? How long does it normally...
July 17, 2017 at 4:00 am
You mean from SELECT @retval? It's because you have no @retval in your code. I would remove those second and third parameters - they don't serve any useful purpose.
July 14, 2017 at 9:02 am
Put an N before the second parameter of sp_executesql.
John
July 14, 2017 at 8:23 am
Yes, it'll only return jobs that are scheduled. Change the INNER JOIN between sysjobs and sysjobschedules to a LEFT JOIN to see all jobs.
John
July 14, 2017 at 6:57 am
Have you considered Reporting Services? One report can use multiple sources, and you can create a subscription to send it out by e-mail.
John
July 14, 2017 at 6:28 am
You haven't posted all of your code, because you'd get an error that you haven't declared @SourceDBName with what you have posted. Once you've fixed that, put a PRINT...
July 13, 2017 at 9:02 am
You can use sqlcmd or Powershell, or you can register the instances in their own group and connect to them all at the same time to run the query. I'm...
July 13, 2017 at 8:29 am
Perhaps your statistics are out of date and so you're getting an inappropriate memory grant, causing spillage to tempdb?
John
July 13, 2017 at 7:05 am
I think he wants all combinations of one word from each group of synonyms. The groups are (Employment, Job, Profession, Vocation), (Insurance), (Online, Electronic) and (Application). I got close, but...
July 12, 2017 at 10:23 am
Lorna
This will reduce the number of CASE expressions. Whether it's actually simpler is for you to decide!
WITH RemoveZeros AS (
SELECT
CASE ExchangeRate
WHEN...
July 12, 2017 at 3:27 am
Yes, I would say about the size of the data that's being deleted. But try it for yourself on a system that doesn't have anything else happening on it, and...
July 11, 2017 at 5:51 am
Well, something's changed. Maybe somebody made an update to the job? Or perhaps the job code contains some data-dependent conditional logic such that the requirement to use SQL Native Client...
July 11, 2017 at 5:39 am
If you want to subtract a value from a previous row, use the LAG function.
John
July 11, 2017 at 3:18 am
Viewing 15 posts - 1,366 through 1,380 (of 7,191 total)