Tools and Tips: From Accidental to Efficient Data Warehouse Developer (PASS Women in Technology...

Post on 14-Apr-2017

195 views 0 download

Transcript of Tools and Tips: From Accidental to Efficient Data Warehouse Developer (PASS Women in Technology...

Cathrine Wilhelmsen

V

DEsP

DgRw

Tip #1: Visual Information

Tip #2: Shortcuts

o

Tip #3: Search in SSMS

Tip #4: Templates and Snippets

Redgate SQL Prompt Demo

Tip #5: Registered Servers and Multiserver Queries

Tip #6: SARGable Queries

(We'll pretend we still use phone books)

Find all rows where Name starts with "T"

TTT

Find all rows where Name starts with "T"

(We'll keep pretending we still use phone books)

Find all rows where Name contains "al"

alal

al

alal

Find all rows where Name contains "al"

Tip #7: Query Analysis

Tip #8: Query Statistics

SET STATISTICS IO OFF;

SET STATISTICS IO ON;

SET STATISTICS TIME OFF;

SET STATISTICS TIME ON;

SET STATISTICS TIME, IO ON;

SET STATISTICS TIME, IO OFF;

Tip #9: Activity Monitoring

Tip #10: SSIS with Biml

<Biml xmlns="http://schemas.varigence.com/biml.xsd">

<Packages>

<Package Name="EmptyPackage1"></Package>

<Package Name="EmptyPackage2"/>

</Packages>

</Biml>

<#@ import namespace="Varigence.Biml.CoreLowerer.SchemaManagement" #>

<# var conAW2014 = SchemaManager.CreateConnectionNode("AW2014", "..."); #>

<# var AW2014DB = conAW2014.GetDatabaseSchema(); #>

<Packages>

<# foreach (var table in AW2014DB.TableNodes) { #>

<Package Name="Load_<#=table.Name#>">

</Package>

<# } #>

</Packages>

Biml for SSIS demo

cathrinewilhelmsen.net/efficient

cathrinewilhelmsen.net/efficient