Search Results for “scalar functions”

Pocket Square

User-Defined Functions Slowing Down SQL Server

Blitz Result: User-Defined Functions Good development practices dictate building reusable code, and user-defined functions seem like a good way to promote code reuse.  Unfortunately, it turns out that SQL Server doesn’t perform well with most scalar user-defined functions. This part of our SQL Server sp_Blitz script checks the plan cache looking for resource-intensive queries that…
Read More

Your Ten Favorite Blog Posts from 2020

Company News
0
The most popular posts this year were when I ran my Fundamentals classes for free throughout the year. I ran a different class per month, and posted signups and videos here on the blog. I’m setting those aside, though, because they’re not evergreen: they’ve since disappeared since I only ran ’em free for a limited…
Read More
Brent Ozar

9 Tips for Faster SQL Server Applications

Development
71 Comments
Wanna make your SQL Server applications go faster? Here are 9 simple tips that will give you a better chance for success. They’re not carved in stone, but they’re a good place to start. Query Design Tips 1. Code for readability first. The easier your query is for humans to understand, the more likely SQL…
Read More

What’s New in SQL Server 2019: 100% Demos

Want to learn more? Check out my recent SQL Server 2019 posts. You haven’t installed SQL Server 2019 yet, and you don’t want to sit through a bunch of slides. You want to see a series of real-world demos focusing on the features of SQL Server 2019 that will make your users happier with as…
Read More
Office Hours Podcast

[Video] Office Hours 2018/12/19 (With Transcriptions)

Videos
0
This week, Erik, Tara, and Richie discuss disaster recovery, Python vs C# for SQL Server, whether you should perform log backups on primary or secondary on AGs, why Postgres is so popular, using mount points for tempdb, attention events, database corruption, MERGE statements, restoring a table from a database, features they look forward to in…
Read More
Office Hours Podcast

[Video] Office Hours 2018/12/12 (With Transcriptions)

Videos
0
This week, Erik and Richie discuss TSQL classes, scalar functions, index reorganize vs rebuild, daily image backups on a fringe SQL server on VMWare, number of databases per AG, best practices for ETL operations, and more! Here’s the video on YouTube: You can register to attend next week’s Office Hours, or subscribe to our podcast to listen…
Read More
Office Hours Podcast

[Video] Office Hours 2018/10/24 (With Transcriptions)

Videos
0
This week, Brent, Tara, and Richie discuss increasing a table’s varchar field from 1 to 2, predicting how long CHECKDB should take, SQL Server configuration options, reporting, reducing high waits, analysis services for SQL Azure, advice to first time PASS attendees, compatibility levels, cardinality estimator, PowerShell, and Tara’s hairdo. Here’s the video on YouTube: You…
Read More

Two Code Patterns That Don’t Virtualize Well

T-SQL
13 Comments
Virtualization used to be a really Big Deal™ for database admins: we had to do a lot of careful planning to get a virtualization project done right. These days, virtualization is more and more of a no-brainer: most apps make the transition just fine. Every now and then, though, an exception pops up – usually…
Read More

[Video] Office Hours 2017/12/20 (With Transcriptions)

Videos
0
This week Brent, Erik, and Richie discuss truncating & repopulating, failed logins, their choice for high availability, PowerBI, read committed isolation, parameter sniffing, database mirroring, extended events and failing queries and re-indexing large tables. Here’s the video on YouTube: You can register to attend next week’s Office Hours, or subscribe to our podcast to listen on the…
Read More