Viewing 15 posts - 3,631 through 3,645 (of 59,087 total)
Thanks for this! It fixed my problem too.
This looks like a prelude to spam. Which problem of your did it fix and which of the many entries fixed it?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 19, 2022 at 5:00 am
Ah... got it. Now I know why the concern over milliseconds. Thanks for the feedback.
One of the issues is, of course, not bumping up the CPU time with a utility...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 19, 2022 at 4:56 am
Post deleted. This thread did end up showing up in "active" threads.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 19, 2022 at 4:18 am
@steve-2 Collins,
I also mean to say, GREAT question!
--Jeff Moden
Change is inevitable... Change for the better is not.
April 19, 2022 at 4:13 am
It's a good solution as long as you recognize that you're creating an internal Cartesian product between rows in the table value constructor (tvc) and the rows in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 19, 2022 at 4:12 am
Just in case someone comes across this again, I have a nice little update for all'ya'all. 😀
Step 1 is to create this function in your master database. Details are, of...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 19, 2022 at 3:26 am
This feels almost like an undocumented "feature" (similar to quirky updates)... I know I would be a bit hesitant in how I used this and would probably continue to...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 18, 2022 at 10:57 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...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 18, 2022 at 5:27 pm
I'm almost out of "off the top of my head questions" but, just to be sure, are you taking DIF backups and mistakenly naming them BAK like your FULL backups...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 7:33 pm
Dammit. I know I typed up a long explanation this morning of what "WorkLoad" means and now it's gone. Maybe I forgot to hit SUBMIT or something. Whatever. 🙁 I...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 7:22 pm
On way is to use the following dynamic management view...
https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views
The "best" way would be to sample the view for the current SPID (@@SPID) that will run the "batch" for the...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 7:03 pm
To answer the question that I think you're asking, do something like this just before you combine @Body and @XML.
SET @xml = REPLACE(@XML,'<tr>','<tr style="background-color:Red; color:White; ">')
If you...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 6:40 pm
This is going to depend a whole lot on what you mean by a "batch". What do you mean by "batch" here?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 6:09 pm
Please don't mistake my answer as being "snarky"... I'm trying to help you help yourself in the future. 🙂
When you have a question like this, you have to ask yourself...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 6:03 pm
Unless you have a process that requires that successful backups be logged in the SQL Server Error Log, I'd turn those off. Here's just one article on how to do...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 16, 2022 at 5:30 pm
Viewing 15 posts - 3,631 through 3,645 (of 59,087 total)