Viewing 15 posts - 1,786 through 1,800 (of 7,608 total)
It's easy and flexible to include weekends in a Calendar table, usually with two flags one that says weekends, one that says holidays. Sometimes Christmas falls on a Saturday,...
March 12, 2021 at 11:17 pm
Hmm, I don't believe I used a CROSS TAB. Yes, I used a CASE in a SUM, but not in a CROSS TAB fashion, from my understanding of a CROSS...
March 12, 2021 at 11:13 pm
Good Point Sergiy.
Public holidays are also excluded. , but right now Id just like to solve the weekends and then see if there is a solution for hoildays...
March 12, 2021 at 8:52 pm
You're welcome! Yeah, I'm sorry too, but I couldn't figure out exactly what values to return in what columns based on your original query, so I was kinda' forced to...
March 12, 2021 at 6:27 pm
Also, be aware RCSI has a 14 byte per row added overhead. If there isn't space available in the existing data pages, you can likely expect a lot of page splits...
March 12, 2021 at 4:15 pm
... The problem is, we don't ship on the weekends ie. Sat and SunThe problem is, we don't ship on the weekends ie. Sat and Sun ...
Do...
March 12, 2021 at 3:06 pm
Thank you for your guidance and reformatting this...it is helpful.
However the main calculation that I'm looking for is to figure out how to add the days and exclude the...
March 12, 2021 at 3:04 pm
I've added some date calc ctes before the query to isolate the date calcs from the main query (also makes it much easier to test them standalone for assorted dates). ...
March 11, 2021 at 11:01 pm
No problem. I don't have a real problem with CROSS APPLY, other than the performance hit. I personally am not a big fan of UNPIVOT, I find the syntax kludgy...
March 11, 2021 at 10:01 pm
You really don't need UNPIVOT or CROSS APPLY for this. They do add some overhead.
March 11, 2021 at 8:13 pm
SELECT
Doc,
SUM(CASE WHEN CHARINDEX('d', Op1+Op2+Op3+Op4) > 0
THEN 1 ELSE 0 END)...
March 11, 2021 at 7:39 pm
Thanks Michael -- the checkpoint command will come in handy for sure.
I pointed out CHECKPOINT.
I have servers with hundreds of dbs. If you just slam them down, the recovery...
March 11, 2021 at 3:40 am
You can add an EXEC AS. Create a login that has only the specific authority it needs in the mgmt db to INSERT to the table; i.e., it doesn't need...
March 11, 2021 at 3:27 am
Agree completely, it should work, as long as the drive has the same letter and paths, just verify that the needed permissions are all back in place.
March 10, 2021 at 3:34 pm
Scott - Thanks for the reply. So when you stop the Agent, what happens to the jobs that were supposed to run during the stoppage? That's mainly what...
March 9, 2021 at 11:43 pm
Viewing 15 posts - 1,786 through 1,800 (of 7,608 total)