Viewing 15 posts - 766 through 780 (of 7,187 total)
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
Yes - same issue. You're crossing two month boundaries: March/April and April/May. You probably need extra logic in your function to check whether the date part is less for the...
April 18, 2018 at 9:36 am
You haven't provided an example of a pair of dates for which the function doesn't work, so I'll guess what the problem is. The way DATEDIFF works is by counting...
April 18, 2018 at 9:17 am
I think you can run it on an evaluation licence for six months. After that, you have to either pay for it or stop using it. That was the case...
April 18, 2018 at 8:58 am
Yes, you need to back up the transaction log if your database is in Full recovery mode, and not just once a day. The full backup doesn't back up the...
April 18, 2018 at 7:43 am
Viewing 15 posts - 766 through 780 (of 7,187 total)