Viewing 15 posts - 3,601 through 3,615 (of 59,067 total)
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...
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...
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...
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?
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...
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...
April 16, 2022 at 5:30 pm
Q
Well now... that's pretty rude. 😉 The question you deleted may have helped others.
April 16, 2022 at 4:05 pm
I'm starting to see this exact question a whole lot. I'm starting to think that it's a prelude to spam. 🙁
To the best of my knowledge, the product keys for...
April 16, 2022 at 4:01 pm
Excellent summary and examples - especially appreciated the animation showing how to navigate the interface!
As a practical note, I recommend not leaning too heavily on color to provide meaning...
April 15, 2022 at 10:11 pm
Thanks everyone for sharing your inputs.
Sometimes we are seeing below patterns
"Application runs a query every 10 mins without any good reason."
There is a MERGE statement which does some data...
April 15, 2022 at 8:48 pm
Attached the script in .docx type.
You've been around for a long time and I think I've shown you this before but one more time.
When you're filling out a post...
April 15, 2022 at 8:28 pm
To add to what Johan posted, your worst performing queries will NOT usually be your longest running queries and it may not be the queries themselves, at all... it could...
April 15, 2022 at 5:04 pm
Like a lot of the other answers on this thread, that's a lot of non-bullet-proof IF's that will eventually result in silent errors producing an incorrect answer.
Don't assume. Yeah... you...
April 15, 2022 at 4:45 pm
My question would be...
Why are you storing such a script on the root of the C: where some users could tamper with it or delete it? This should be in...
April 15, 2022 at 4:41 pm
I have a SQL 2012 database with simple recovery that backs up every night. Normally the backup file is around 87,000 MB and grows proportionality as data is added. ...
April 15, 2022 at 4:33 pm
Viewing 15 posts - 3,601 through 3,615 (of 59,067 total)