Tech4Him – Technology with Integrity

A Christian technology chaos wrangler and his thoughts

SSWUG vConf – Day 2 Links, Tips and Tidbits

Posted by Tom On October - 22 - 2009

On Call Duties

TJ Belt

http://tjaybelt.blogspot.com
http://www.twitter.com/tjaybelt

You are on-call, maybe middle of the night and you get a call and there’s a problem. What do you do?

  • What tasks were last performed by what persons?
  • Start documenting incidents if you don’t already. Great for helping resolve things later down the road.
  • Document, document, document

Items to be sure of and continuously check

  • Scan OS error events
  • Check on backups
  • System specific output files (xml, reports, files)
  • Log and data file sizes
  • Space available / Free space on drives
  • Replication health
  • SQL Server logs
  • Other notes of interest

Work to get your logs clean over time so that problems become more apparent and you will spend less time chasing red herrings.

“You only need one. Either a good backup or a good resume.”

Only notify on error, not on success. (Of course there may be exceptions)

Dimension Table ETL with SSIS

Erik Veerman
Mentor, Solid Quality Mentors
SQL Server MVP

Dimension tables contain the “text descriptors” or attributes. Also organized as hierarchies of categories, levels and members.

Slowly Changing Dimension (Ralph Kimball)

  • Type 0:No change (Fixed Attribute)
  • Type 1:The value is overwritten (Changing Attribute)
  • Type 2:Slow changes. A new row is added (Historical Attribute)

Type 2 – New surrogate key and Start Time/End Time updates so to add the new record.

Inferred Members

  • Missing dimension member during Fact load later becomes available in the Dimension source
  • Also known as late arriving dimensions
  • Fact load, placeholder record added to dimension table with new surrogate key generated
  • Dimension process, for inferred members, all dimension attribute columns are updated with new values (type 2 attributes are handled as type 1)

Additional SSWUG Articles

Fact Table ETL with SSIS

Erik Veerman
Mentor, Solid Quality Mentors
SQL Server MVP

Identify Dimension Surrogate Keys

  • Locate dimension candidate keys in transaction source
  • Validate uniqueness and data integrity
  • Considering historical changes
    • Identifying current dimension record, combine business keys with current identifying meta data (data identifier or boolean)
    • Handle missing dimension records
  • SSIS Data Flow Options
    • Lookup transformation
    • Merge Join transformation
    • Fuzzy Lookup transformation
  • SSIS Control Flow Option
    • Execute SQL Task
  • Fact ETL involves surrogate keys, grain changes, and measure calculations
  • SSIS handles these through several out-of-the-box transformations

Loading a Data Warehouse with SSIS

Brian Knight
bknight@pragmaticworks.com
CEO, Pragmatic Works

Why Data Warehouse?

  • Get users off of transactional systems
  • Keeping more data online
  • Easier reporting
  • Consolidate data sources

Data Separated into fact and dimension tables

  • Dimension tables answer the pivot or where clause
    • Make as wide and descriptive as possible
    • Surrogate keys operate as unique ID for each row
    • Keep surrogate keys as small as possible
  • Fact tables answer the what or select statement
    • Intersect all dimension tables
    • Surrogate keys from each dimension in this table
    • Measures are the “what” like Price, Quantity, Duration

Additional Articles

Live – SQL Server Analysis Services – Real World Performance Tuning (4hrs)

Ted Malone

(I only caught a few minutes here and there of this marathon live session, but the parts I caught were good. We’ll have to watch the on demand once it goes up.)

DBA Checklist

Buck Woody, Microsoft SQL Server Specialist

http://blogs.msdn.com/buckwoody
http://www.informit.com/guides/guide.aspx?g=sqlserver
http://edge.technet.com/People/BuckWoody/

SSMS

  • Object Explorer: Right click to see additional columns including Last Backup.
  • Standard Reports available via right click
  • Log Viewer

oSQL or SQLCMD

PowerShell – Latest and greatest

Post Installation

Daily, Weekly, Monthly and Yearly

Recommends being alerted of both error AND success in order to know that maintenance task really did run.

Maintenance tasks

  • Do not run the auto-shrink option in your tasks.

Take a baseline with PerfMon. Email him for a list of counters.

Keep a SQL Server run book containing all configuration changes.


Popularity: 2% [?]

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • PDF
  • RSS
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Leave a Reply