Тёмный

T-SQL: Bad Habits and Best Practices with Aaron Bertrand 

GroupBy
Подписаться 7 тыс.
Просмотров 18 тыс.
50% 1

Whether you are a developer, DBA, or anything in between, chances are you are not always following best practices when you write T-SQL. Unfortunately, many so-called “bad habits” aren’t always obvious, but can lead to poor performance, maintainability issues, and compatibility problems.
In this session, you will learn about several bad habits, how they develop, and how you can avoid them. While we will briefly discuss advice you’ve probably heard before, like avoid SELECT * and don’t use NOLOCK, you will also learn some subtleties in SQL Server that might surprise you, how some shorthand can bite you in the long run, and a very easy way to improve cursor performance.
By changing your techniques and ditching some of these bad habits for best practices, you will take new techniques back to your environment that will lead to more efficient code, a more productive workflow, or both.
Get more information, resources, and more here: groupby.org/se...

Опубликовано:

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@galthrampt6476
@galthrampt6476 5 лет назад
This video is so good. Should have more views. Learned a lot. Thank you!
@mohammedhassan8522
@mohammedhassan8522 7 лет назад
Thanks Brent for sharing this, Thanks Aaron Bertrand your session helped me a lot to improve my codes and be a better coder.
@frescani
@frescani 3 года назад
Is the code available anywhere? The groupby link is 404.
@Enzo2102
@Enzo2102 7 лет назад
Excellent session! Thx!
@sethsacks9947
@sethsacks9947 6 лет назад
Use Semi colons because so many other languages require it.
@505509richard
@505509richard 6 лет назад
re regional date formats, what about SELECT CONVERT(datetime '10 jul 2017')? ... its clear and indisputable what I meant
@NicoleAndAaronBert
@NicoleAndAaronBert 5 лет назад
Richard, `jul` is English. So, for several languages, it isn't quite disputable, but it's not always going to be obvious to a foreign reader, either. And it breaks. Try `SET LANGUAGE RUSSIAN` first, or finnish, or french, or 90+% of the languages SQL Server supports... what about using an ISO standard? 20170710 is far more clear and indisputable than the regional format you suggest. IMHO.
@MethodOverRide
@MethodOverRide 2 года назад
Anyone wanting the code Google his name and tsql bad habits to bring up recent code repos for him and updated presentation for SQL 2019.
@squirrelpatrick3670
@squirrelpatrick3670 3 года назад
I like tabs :-(
Далее
SQL Server 2016 "Hidden Gems" with Adam Machanic
1:19:06
Unique deep painful back massage for Lisa #chiropractor
00:11
Advanced T-SQL [Full Course]
1:00:50
Просмотров 37 тыс.
Brent Ozar_Watch Brent Tune Queries
1:06:57
Просмотров 64 тыс.
What To Do When SQL Server is Slow   Brent Ozar
58:50
Просмотров 40 тыс.
SQL Server Index Internals: A Deep Dive
1:14:34
Просмотров 32 тыс.