Viewing 15 posts - 7,081 through 7,095 (of 13,877 total)
Yes, but ...
I'd suggest trying out a couple of non-destructive queries first ... and definitely in a test environment ... just to get familiar with it.
Note the comments about sp_msForeachDB...
June 7, 2016 at 1:37 pm
Some pratting about is required to handle the single quotes embedded in your SQL, before it can be passed to an executor proc.
One way is to replace all single quotes...
June 7, 2016 at 12:58 pm
June 7, 2016 at 12:45 pm
Please post a copy of the execution plan.
June 7, 2016 at 9:30 am
Martin Schoombee (6/7/2016)
The best way is with a calculated measure, using a case statement to check if the sum (or aggregate) is less than zero.
It would also be possible...
June 7, 2016 at 9:25 am
jcobb 20350 (6/7/2016)
June 7, 2016 at 7:13 am
Jacob's answer is clear.
To illustrate his point about appropriate indexes, try creating this and then running the query again:
CREATE INDEX x ON #T2(D1) INCLUDE(A1);
June 6, 2016 at 11:17 am
I suspect that the question is: "Why does the Execution Plan for this query contain a 'sort' when there is no ORDER BY clause?"
If so, the answer is along the...
June 6, 2016 at 11:13 am
SQLTougherGuy (6/6/2016)
June 6, 2016 at 10:30 am
SQLTougherGuy (6/6/2016)
I need to execute a bunch of Control-M Oracle jobs and packages using POWERSHELL. These jobs will be scheduled using SQL Agent. I have the following code (see...
June 6, 2016 at 9:50 am
Any Oracle users out there who are keen to move to SQL Server? This may be of interest.
June 6, 2016 at 6:34 am
kokilaeb (6/5/2016)
June 6, 2016 at 5:41 am
arkiboys (6/3/2016)
Hi,How is it possible to use just one package to load all the .csv files into the related tables?
thank you
"all the .csv files" ... in the world? In your...
June 3, 2016 at 1:28 pm
Just tried installing 2016 Dev on a W7 machine, only to get this:
I hadn't realised that W7 was not supported. So now ... W10 upgrade on a Friday ... why...
June 3, 2016 at 6:53 am
You need it to loop for every day between MaxDate and GetDate()? Why not just return the number of days (between MaxDate and GetDate()) from your ExecSQL and use that...
June 2, 2016 at 3:49 pm
Viewing 15 posts - 7,081 through 7,095 (of 13,877 total)