Viewing 15 posts - 2,941 through 2,955 (of 59,067 total)
A far better method would be to write a trigger to do the copy to the history table. Make sure you write it to handle more than one row at...
August 15, 2022 at 6:30 pm
Thank you Kaj, that was a great and easy trick.
Thank you so much!
The method Kaj wrote about is call a "CROSS TAB". You can read more about how it...
August 15, 2022 at 6:22 pm
The table structures are identical across the estate, so I had wondered if they could - or should - be consolidated somehow.
Possibly a Partitioned View. If it's across servers,...
August 15, 2022 at 6:16 pm
So that means that the application could be modified to look in a different database for a different table, then... correct?
August 15, 2022 at 6:08 pm
Is there a script that will report savings for Page Compression?
Thanks.
Better than that, there's a system stored procedure that will estimate the savings as bytes before'n'after. You can find...
August 15, 2022 at 6:04 pm
Bruin wrote:Is there a script that will report savings for Page Compression?
Thanks.
yes - its called "read the manual"
Sometimes, that's difficult because a lot of technical manuals aren't written for...
August 15, 2022 at 6:01 pm
Thanks...
The monthly tables are queried often..
Ok... how are people doing that when there's one table per month? Are you already using partitioning and, if so, what kind?
August 15, 2022 at 5:58 pm
That certainly a possibility. That's more of a "bridge" table. I don't know what else you're trying to track, though.
August 15, 2022 at 3:12 am
I have a 1.3 terabyte database and growing, in which 1 table a month collects all of the new data... The process is collecting machine data and creates a...
August 15, 2022 at 2:15 am
How do you intend to track "transactions"? I seem to be that the operator gets a "batch" of fuel and then the operator give that fuel to a single machine. ...
August 15, 2022 at 2:07 am
Ok... I believe I've got it this time. To summarize, the code solves the problem of NULLs being returned in the "Lag'n'Lead" columns if there is data outside of the...
August 14, 2022 at 11:54 pm
My rub on the subject is concerning portable devices. It's not like people religiously change the timezone on their machine and what does datetimeoffset in EF use as a reference...
August 14, 2022 at 5:52 pm
p.s. I'm thinking that the LAST_VALUE and FIRST_VALUE functions may be a better choice here. I'll give that a try.
EDIT: I just tried them... Prior to SQL Server 2022, LAST_VALUE...
August 14, 2022 at 2:52 am
Crud... just not having a good week here. I just found a bug in my code and had to take it down. 🙁
August 14, 2022 at 2:22 am
My point is that deciding to use a DATETIME2 and only storing UTC dates/times only without also storing the time zone offset or time zone information is inherently a...
August 13, 2022 at 5:14 pm
Viewing 15 posts - 2,941 through 2,955 (of 59,067 total)