Viewing 15 posts - 8,986 through 9,000 (of 13,876 total)
Can you expand on this bit please?
What I'm looking to do is turn the first query "getData" into the above loop, but rather in T-SQL.
I don't know what turning a...
October 22, 2014 at 9:02 am
John Mitchell-245523 (10/22/2014)
SELECT UserName, ServerOperation, SUM(DISTINCT p)
FROM #Operations o
OUTER...
October 22, 2014 at 5:13 am
Interesting.
If you could find a way of breaking down the permission at row level (eg, from 7 to (4,2,1)), it may be possible to do a SUM() on the UNIONed...
October 22, 2014 at 3:00 am
Resender (10/22/2014)
Txn,it was that simple
:smooooth: Simple is good.
October 22, 2014 at 1:12 am
Try using square brackets around the variable name.
October 22, 2014 at 1:03 am
johnix76 (10/21/2014)
i tried to use xp_cmdshell in order to execute a vbscript from a trigger and it works, but i notice that trigger wait until the vbscript was terminated.
i...
October 21, 2014 at 6:40 am
October 21, 2014 at 12:42 am
Eirikur Eiriksson (10/21/2014)
October 21, 2014 at 12:41 am
ScottPletcher (10/20/2014)
October 21, 2014 at 12:08 am
Exactly what I had in mind.
October 20, 2014 at 2:32 pm
ronan.healy (10/20/2014)
October 20, 2014 at 10:41 am
Eirikur Eiriksson (10/18/2014)
Quick window function solution, should be self explanatory😎
Eirikur, do you ever do anything slowly? 😛
October 20, 2014 at 10:36 am
Steve Jones - SSC Editor (10/20/2014)
October 20, 2014 at 10:32 am
Wow, good question.
If you were to model this in the database as you suggest, I would think that the best-performing solution would be one which generated dynamic SQL to perform...
October 20, 2014 at 10:29 am
What's the datatype of the column in the target table?
John's solution handles everything up to 999, not just 100.
October 20, 2014 at 10:20 am
Viewing 15 posts - 8,986 through 9,000 (of 13,876 total)