SlideShare a Scribd company logo
1 of 27
Download to read offline
•
•
•

•
•
•
•
•
•
•
•
•
•
•

•
•
•

•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Prior to version 6.0

New in version 6.0

$CURSOR$

$PASTE$

$DATE$

$SERVER$

$TIME$

$DBNAME$

$USER$
$MACHINE$

–
•
•
•
•

•

•
•

•

•
•

•

•

•

•

•
•

•

•

•
•

•
•

•
•
•

•

•

•
•

•
•

•
•

•

•

•
•

•

•
•
•
•
•

Rows to Process
Iterations

30,000
40

Rows Processed

1,200,000

Rows to Process

30,000

1 Scalar function
accessing 100 rows per
function call
Rows Processed

100

3,000,000
•
•
•
•

Rows to Process
Iterations

30,000
40

•

1,200,000

Rows to Process

•

Rows Processed

30,000

1 Scalar function
accessing 100 rows per
function call
Rows Processed

100

3,000,000
•
•
•
•
•
•
•
•
Thank You
Improve Your T-SQL by Changing Your Writing Habits - Red Gate Style

More Related Content

More from Red Gate Software

Key findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops reportKey findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops report
Red Gate Software
 

More from Red Gate Software (20)

Key findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops reportKey findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops report
 
Extend DevOps to Your SQL Server Databases
Extend DevOps to Your SQL Server DatabasesExtend DevOps to Your SQL Server Databases
Extend DevOps to Your SQL Server Databases
 
2019 year in review slides
2019 year in review slides2019 year in review slides
2019 year in review slides
 
What we learned at PASS Summit in 2019
What we learned at PASS Summit in 2019What we learned at PASS Summit in 2019
What we learned at PASS Summit in 2019
 
Quality in Software Development: Anglia Ruskin University
Quality in Software Development: Anglia Ruskin UniversityQuality in Software Development: Anglia Ruskin University
Quality in Software Development: Anglia Ruskin University
 
How SQL Change Automation helps you deliver value faster
How SQL Change Automation helps you deliver value fasterHow SQL Change Automation helps you deliver value faster
How SQL Change Automation helps you deliver value faster
 
DevOps essentials from Abel Wang and Steve Jones
DevOps essentials from Abel Wang and Steve JonesDevOps essentials from Abel Wang and Steve Jones
DevOps essentials from Abel Wang and Steve Jones
 
Successfully migrating existing databases to Azure
Successfully migrating existing databases to AzureSuccessfully migrating existing databases to Azure
Successfully migrating existing databases to Azure
 
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
The Ultimate Guide to Choosing and Implementing the Right Monitoring ToolThe Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
 
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
 
Using Redgate, AKS and Azure to bring DevOps to your database
Using Redgate, AKS and Azure to bring DevOps to your databaseUsing Redgate, AKS and Azure to bring DevOps to your database
Using Redgate, AKS and Azure to bring DevOps to your database
 
Using Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your DatabaseUsing Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your Database
 
How to Pitch a Software Development Initiative and Ignite Culture Change
How to Pitch a Software Development Initiative and Ignite Culture ChangeHow to Pitch a Software Development Initiative and Ignite Culture Change
How to Pitch a Software Development Initiative and Ignite Culture Change
 
Taming the Wild West
Taming the Wild West Taming the Wild West
Taming the Wild West
 
Standardize Database Development Across your Organization in 4 Key Steps
Standardize Database Development Across your Organization in 4 Key StepsStandardize Database Development Across your Organization in 4 Key Steps
Standardize Database Development Across your Organization in 4 Key Steps
 
Data Privacy Next Steps -Compliant Database DevOps
Data Privacy Next Steps -Compliant Database DevOpsData Privacy Next Steps -Compliant Database DevOps
Data Privacy Next Steps -Compliant Database DevOps
 
Easing the transition from shared to dedicated database development
Easing the transition from shared to dedicated database developmentEasing the transition from shared to dedicated database development
Easing the transition from shared to dedicated database development
 
Scaling compliant database dev ops at the enterprise level
Scaling compliant database dev ops at the enterprise levelScaling compliant database dev ops at the enterprise level
Scaling compliant database dev ops at the enterprise level
 
How to ensure efficiency and effectiveness in distributed database developmen...
How to ensure efficiency and effectiveness in distributed database developmen...How to ensure efficiency and effectiveness in distributed database developmen...
How to ensure efficiency and effectiveness in distributed database developmen...
 
How to ensure SOX, HIPAA, & GDPR Compliance in Dev and Test
How to ensure SOX, HIPAA, & GDPR Compliance in Dev and TestHow to ensure SOX, HIPAA, & GDPR Compliance in Dev and Test
How to ensure SOX, HIPAA, & GDPR Compliance in Dev and Test
 

Improve Your T-SQL by Changing Your Writing Habits - Red Gate Style