Viewing 15 posts - 451 through 465 (of 22,227 total)
What goes around comes around. The person you help today may remember you when they get their next position. There is a pleasure to be had when you hear...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
July 3, 2023 at 12:46 pm
In general, T-SQL just doesn't lend itself to code reuse. I've seen lots of attempts at using functions as a way to turn T-SQL into more of a development language....
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 23, 2023 at 1:32 pm
I'd use CHARINDEX. You can search for an expression, as simple as looking for the space, within the string and return the value where that space is.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 23, 2023 at 1:28 pm
If you're just talking VMs on Azure, yeah. Same behaviors as VMs anywhere else. If you're talking Managed Instance or Azure SQL Database, different rules. Very.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 8, 2023 at 12:44 pm
Aggregation versus sorting. A lot less work to sort than aggregate. Also, a join operation versus none.
Also, you can get much more accurate measures if you use Extended Events.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 8, 2023 at 12:43 pm
Yeah, I'm a little surprised they don't have either Query Store or Extended Events working on it. Seems like a necessity. The DMVs are nice, but cache dependent, so it's...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 7, 2023 at 7:01 pm
3rd party solution (my employer), Redgate Software makes a tool, SQL Compare, that can actually look directly at the backup file and compare that to a database to find differences....
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 6, 2023 at 5:35 pm
Source control your database code. All of it.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 6, 2023 at 4:34 pm
If you can't guarantee, 100%, that most (read that as 98% or more) of the queries will be able to filter on the partitioning column(s), then whatever you do, don't...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 6, 2023 at 11:57 am
You want to look up the WITH MOVE syntax. You can restore to a new database name, but only if you also move the storage location for the database.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 6, 2023 at 11:52 am
First things first, just so you know, despite the name, Profiler in Azure Data Studio isn't Profiler. It's a wrapper around Extended Events. You can expand and extend what gets...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 6, 2023 at 11:50 am
And here's another area of trust that worries me. I regularly reconcile all my financial accounts monthly. Why? Because they are all on computer systems that can cause errors. ...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 5, 2023 at 4:40 pm
What is it with double posts on this site? When I submitted my first post I got a 403 error and then when I refreshed the page I didn't...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 5, 2023 at 4:40 pm
Truly appreciate everyone's feedback on this one. I find it a fascinating topic. I like the various approaches we all take, based on a combination of our own experiences and...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 5, 2023 at 12:24 pm
Grant, and anyone else who may not be aware, the USPS offers Informed Delivery on their web site which provides pictures of most mail being delivered. It's a simple...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 5, 2023 at 12:22 pm
Viewing 15 posts - 451 through 465 (of 22,227 total)