Viewing 15 posts - 1,366 through 1,380 (of 7,187 total)
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
Mischa
I'm afraid I can't see your screenshots. Does the script include xp_instance_regwrite, by any chance? That doesn't show an absolute path, but rather one relative to the hive...
July 11, 2017 at 2:59 am
So bal_run is the column you currently have in your result set that has wrong numbers in it? From your expected results, all you need to do is add Principal...
July 11, 2017 at 2:50 am
I think the first sentence means "I had a problem", but the rest is more difficult. Please could you post in English?
Thanks
John
July 11, 2017 at 2:30 am
You've lost me, I'm afraid. Please will you show us what the results should be? Sample data in consumable form (INSERT statements) would also be more helpful than a screenshot....
July 11, 2017 at 2:08 am
Viewing 15 posts - 1,366 through 1,380 (of 7,187 total)