Viewing 15 posts - 766 through 780 (of 7,191 total)
Paul
This will get you somewhere near where you want to be. It involves three table scans, so there may be a better alternative from a performance point of view.
May 10, 2018 at 7:44 am
I've never heard of a NULL collation. If you want all columns to have the same collation as the database, why not specify that collation by name in the ALTER...
May 10, 2018 at 5:39 am
May 10, 2018 at 5:30 am
What do you mean you'll be having millions of records? There are only three rows in your required result set. Please show us your xml_path query, and explain in more...
May 9, 2018 at 4:21 am
If you use the STUFF function to insert a colon between the hours and minutes and minutes and seconds, you should then be able to convert to datetime. If that...
April 27, 2018 at 3:41 am
Does the one that fails involve a linked server or an OPENROWSET command or something like that?
John
April 25, 2018 at 7:09 am
An interesting problem. I've seen this before, where the same user is a member of more than one group. I can't remember what the answer is, though! Does it:
(1)...
April 23, 2018 at 7:46 am
Beatrix is right - this could affect your differential backups. But it won't break your log backup chain. Now you've come through this unscathed, this would be a good opportunity...
April 23, 2018 at 6:24 am
If you're comfortable with the fact that if the subquery runs first and then releases its lock then its results may have changed by the time the main query has...
April 23, 2018 at 3:32 am
Why not just have one AD group for each required permission set? You might find that you have some groups that contain only one member, but that doesn't matter -...
April 23, 2018 at 2:31 am
Something like this:SELECT
OrderNo
, Item
, OrderQty
, x.OnHand - SUM(OrderQty) OVER (PARTITION BY Item ORDER BY OrderNo ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS OnHand
April 19, 2018 at 9:03 am
Ignacio
Do you have sp_whoisactive on your server? You can use it to see current activity all at once, without having to query several DMVs.
John
April 19, 2018 at 2:39 am
Viewing 15 posts - 766 through 780 (of 7,191 total)