• No results found

Tips & Tricks with SQL Server Performance Tuning, SSAS, SSRS, SSIS, and More!

N/A
N/A
Protected

Academic year: 2021

Share "Tips & Tricks with SQL Server Performance Tuning, SSAS, SSRS, SSIS, and More!"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

Tips & Tricks with SQL Server Performance

Tuning, SSAS, SSRS, SSIS, and More!

By Ike Ellis, MVP @ike_ellis www.ikeellis.com

Blog.ikeellis.com

(2)

So you want to be great at SQL Server…

SQL Server Integration Services SQL Server Analysis Services

Tabular

MultiDimensional SQL Server Reporting Services Excel

Data Quality Services Service Broker Performance Tuning Indexing Query Plans Plan Analysis Memory Management SANs Network Clustering Availability Groups PowerShell

Master Data Services Architecture

Data Mart Design Data Normalization CDC

NoSQL/BigData (At least the MS Cloud Offerings) Competitive Knowledge (Oracle, Tablaeu, QlickView, Postgres)

ORMs(Entity Framework, Nhibernate, Micros)

(3)

Tips From the SQL Consultant

• For the YouTube/Reddit/Chive/Cracked/Meme generation • Lots of disjointed tips

• Popular mistakes I see or easy things I think you can take advantage of

• Between 3 – 5 minutes each

(4)
(5)

Tip #2: Five minutes on report formatting = 10x more impressive

• Spend 10 minutes on design (as opposed to the zero we typically spend)

• Choose colors wisely

– 99/100 - developers use the default color palette • HTML color picker websites

– http://www.lavishbootstrap.com • MorgueFile

(6)

Tip #3: The right way to find hardware problems

• Merging PerfMon and Tracing

• Get the Batch and Completed Events Only

• Never trace from the computer you are monitoring • Always trace to a file and then load in a table after.

6

(7)

Tip #4: Lifehack: Readable Presentations

• Take the average age of the people in your audience and divide by 2: That’s your font size

(8)

Tip #5: Check for heaps/clustered indexes

SELECT t.[Name] FROM sys.Indexes i JOIN sys.Tables t

(9)
(10)

Tip #7: No reason to use ISNULL  CONCAT!

(11)

Tip #8: How to search schema

• F7 • SQLSearch – Free – Download it! – http://www.red-gate.com/products/sql-development/sql-search/

– Did I mention it’s free? • Dependency Tracker

– Not Free, but still cool

• select object_name(object_id), definition as name • from sys.all_sql_modules

(12)

Tip #9: Windowing Functions are pretty cool

(13)

Tip #10: SSDT Search for options

(14)

Tip #11: Scripting: You have two choices

• Two Choices

– Get good at boring repetitive tasks – Get good at PowerShell & Scripting

(15)

Tip #12: TempDB Configuration

(16)

Tip #13: Prettify!

16

http://extras.sqlservercentral.com/prettifier/prettifier.aspx

(17)

Tip #14: Execute scripts over multiple servers?

(18)

Tip #15: Life is so easy with a dates table

• Find the sales numbers for the first Monday of every month of the year

(19)

Tip #16: Try_Cast

(20)

Tip #17: Never reinvent the wheel

• Take SQL# for example • Good Documentation • Easy Syntax

(21)

Tip #18: Save scripts for easy access

• Lots of repetitive scripts with business logic

(22)

Tip #19: Enforce Business Rules in the DB

• Foreign Keys

• Unique Constraints • Check Constraints

(23)

Tip #20: Log, Log, Log (and beware of subscriptions) select c.Name , e.InstanceName , e.UserName , e.Parameters , e.TimeStart , e.TimeEnd , e.TimeDataRetrieval , e.TimeProcessing , e.TimeRendering from executionlog e join catalog c on e.reportid = c.ItemID

(24)

Ike Ellis

• http://blog.ikeellis.com

• http://www.ikeellis.com

• YouTube

– http://www.youtube.com/user/IkeEllisData

• SQL Pass Book Readers

– http://bookreaders.sqlpass.org/

• San Diego Tech Immersion Group • Twitter: @ike_ellis

• 619.922.9801

References

Related documents

makers can benefit by giving proper attention to  all   all  information communicated in the financial information communicated in the financial statements

Covering Indexes 128 A Pseudoclustered Index 130 Recommendations 130 Index Intersections 130 Index Joins 132 Filtered Indexes 134 Indexed Views 136 Index Compression 141

Summarizing our results on the effect of health insurance mandates on job creation attributes of the self-employed, we find that an increase in the total number of mandates

to look young for one’s years aparentar joven para la edad de uno.. to be getting on in years entrar

“En Veracruz aún se cultiva la composición de coplas de diez versos (o décimas), que también estuvieron arraigadas en otras partes de Latinoamérica. En este

The Dallas Opera Florida Grand Opera Houston Grand Opera Los Angeles Opera Lyric Opera of Chicago Minnesota Opera San Diego Opera San Francisco Opera The Santa Fe Opera Seattle

These tools include the Activity Monitor, Performance Monitor (Reliability and Performance Monitor in Windows Server 2008), SQL Profiler, and the Database Engine Tuning Advisor..

Factors that contributed to false-negative results in PET/CT were determined in detecting clinically relevant lesions including malignant lesions, high-grade or villous adenomas,