Viewing 15 posts - 3,616 through 3,630 (of 59,067 total)
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
Q
Well now... that's pretty rude. 😉 The question you deleted may have helped others.
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 15, 2022 at 4:33 pm
Are you still there? If so, see my previous post.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 15, 2022 at 4:30 pm
Viewing 15 posts - 3,616 through 3,630 (of 59,067 total)