Viewing 10 posts - 1 through 10 (of 10 total)
The DMVs I've looked into have the CPU usage with only millisecond accuracy, which is fine for a large enough time window, but not at a batch level. It looks...
April 19, 2022 at 5:52 am
To explain...
Each database is used for a different customer. My software processes stuff for each customer. If there's excessive CPU usage, that bumps up their invoice, based (among other things)...
April 18, 2022 at 9:10 pm
My goal is to know how much CPU time is used on a per-database, per-time-window basis. I'm not comparing anything, although I may decide to move a database to a...
April 18, 2022 at 8:59 pm
Hi Michael. Without going into my reason, I need to know the sum of CPU usage for ad-hoc batches of SQL statements I execute, on a per-database and per-time-window basis. ...
April 18, 2022 at 4:00 pm
Hi Jeff. Thanks, but unfortunately, the CPU usage in sys.dm_exec_requests and sys.dm_exec_query_stats are only accurate to the millisecond, and I need more accuracy, since otherwise the result will almost always...
April 18, 2022 at 5:27 am
By "batch", I mean one or more statements. I want to know if I can add any SQL statements to the batch, send that new batch to the SQL Server,...
April 16, 2022 at 6:36 pm
Hi Gail,
Yeah, I only call them "nested transactions". I'm doing the single transaction thing with SAVE TRANSACTIONs in the called sprocs (depending on whether @@TRANCOUNT is 0), but thanks...
December 28, 2015 at 11:53 am
Hi Eirikur,
I don't think you understood my reply. When there are nested sprocs, writing the table variable to the log file can only occur by the outer-most calling sproc,...
December 28, 2015 at 12:22 am
I don't think either of those solutions would work, because if a calling sproc were to rollback, any write from the table variable to the log table would be rolled...
December 27, 2015 at 10:55 am
That's an interesting approach, although when dealing with nested sprocs and nested transactions, can get a little complex, since AFAIK, you can only pass a table variable as readonly.
December 26, 2015 at 1:16 pm
Viewing 10 posts - 1 through 10 (of 10 total)