SQL Server Reference

Back Home Up


Database Administration  BI Resources  Book Resources  Clustering & High Availability  Coding & Development  Source Code Control  Express Editions 
 Performance  SQL Security  Third Party  User Groups  Newsletters  SQL 2005  SQL 2008 (& R2)  SQL 2012 {Denali}


Odd trivia...who do you know that has "S", "Q", and "L" contained in their last name
(like SQUILLACE)?


Make sure you visit my SQL Server Screenshot Gallery  page!!!


For links to SQL Server samples on CodePlex click here

Contains samples for:

  • Database samples
  • Database Engine
  • Database Development
  • SSAS
  • SSRS
  • SSIS
  • Service Broker

...and more.


 

See also...Study Notes

...which contain pages with a comprehensive list of system-stored procedures, functions and statements that you learn in these courses (not necessarily beautifully formatted)!


DML Query clause order (for SELECT, INSERT, UPDATE, DELETE)

Select ____(something or everything)      
    From __________
       Join _____ on _____
           Where ____________
               Group By ____________
                   Having _______________
                       Order By _______________

Remember this as "SFJOWGHO". Does that help?

Student Susan Svoboda suggests "Some Freak JO Watches GHOsts."


See the SQL Server Cool Third Party Products page.

SQL Server & .NET Developer User Groups

South East Michigan SQL Server Users Group (SEMSUG)

Meets at Microsoft's office in Southfield, MI on the 19th floor. Now affiliated with PASS (www.SQLPASS.org).

West Michigan SQL Server Users Group
          (http://westmisql.org/)

Previous URLs:
http://WestMichigan.Pass.org

http://wmsql.org.

Inaugural meeting was held on Wed., August 8th, 2007 at Alticor's (Amway) headquarters. Also now affiliated with PASS.

Chicago SQL Server Users Group

Chicago.SQLPASS.org.

Ohio North SQL Server Users Group (Cleveland)

OhioNorth.SQLPASS.org.

List of Metro DC SQL Server Users Groups

  • Columbus, MD

  • Virginia Beach, VA

  • Springfield, VA

  • Reston, VA

  • Vienna, VA (a .NET group)

To find other SQL User Groups click here to find the PASS chapter locator.

 

Greater Lansing (& Flint) User Group .NET (GLUGNET)

A .NET developers group. www.GLUGNET.org, meetings in both Lansing (Anthony Hall at MSU) and in Flint (New Horizons Computer Learning Centers - Flint)

Great Lakes Area .NET User Group

"For Developers, by Developers". Meets at Microsoft's office in Southfield, MI.

West Michigan .NET User Group

Meets currently at New Horizons in Grand Rapids, MI.

SQL Server Newsletters & free training resources

MSSQLTips.com newsletters

 

My recommendation is to subscribe to the regular
e-newsletters/e-videos that each of these produce. Yes, it can be overwhelming in your InBox but it will likely be worth it. If not, then unsubscribe!

Simple-Talk.com newsletters (RedGate)

SQLServerCentral.com newsletters

SQLShare.com (videos)

Pragmatic Works free webinars "on the T's"

Free webinars offered most Tuesdays and Thursdays over a broad range of SQL Server topics.

"SQL Lunch" free webinars

 

SQLSaturday conferences  

 

The event on September 17, 2011 was a great success. Look for other upcoming SQL Saturday events near you!

Free, one day conferences throughout the USA and beyond.

Microsoft SQL Server and Database Resources


Comments

 

Microsoft home page for SQL Server

  

Microsoft's home for SQL Server Technologies

 

Microsoft's SQL Server TechCenter (Microsoft TechNet)

 

AdventureWorks schema diagrams (several diagrams, covers > 1 version of SQL Server)

From CodePlex, includes data warehouse, OLTP, and light schema versions.

Wikipedia entry for SQL Server

Includes version history, codenames, some release dates, and more.

Recommended favorites/bookmarks to make in SQL Books Online (BOL) for SQL 2000

 

SQL Admin & Developer Tips & Tricks

From Microsoft's website

See my SQL Server screenshots

Includes good bookmarks to SQL tool shortcuts!

SQL Server Magazine

  

List of OLE-DB Providers

Found at the SQLSummit website.

Other Relational Database Management Systems (RDBMS) Offerings

A feature matrix.

SQL Server facts to document (under development)

 

Suggested Content for "Run Book" for SQL Server

A Microsoft TechNet resource, from the SQL 2000 Server Operations Guide

Troubleshooting Multi-Server Job Administration

An article from Chris Randall.

MSSQLTips

From www.MSSQLTips.com.

Useful Visio stencil set for SQL Server 2005

From Josh Robinson's blog.

SQL Server Critical Task List (CTL)

A resource from Simple-Talk by Buck Woody. It details Daily, Weekly, Monthly, etc. maintenance tasks.

 

 

Database Administration topics

(I am doing a lot of reorganization of topics at the moment)

How to Identify Your SQL Server Version and Edition

Microsoft KB321185.

How to Determine SQL Server Database Transaction Log Usage

From MSSQLTips.com, by Greg Robidoux.

Did You Know?

Free eBook by Quest on Query Tuning, Index Maintenance, and other Performance Optimizing Topics...argh, 145pp!

Tips for New DBAs (a series of posts)

From SQLServerCentral.com by Craig Outcalt.

Top 10 Transact-SQL Statements a SQL Server DBA Should Know

From DatabaseJournal.com, by Muthusamy Anantha Kumar aka "The MAK".

DBA Myths and Misconceptions

From SQLSkills.com, a blogsite and more. This misconception series is from Paul S. Randal.

eBook "Brad's Sure Guide to SQL Server Maintenance Plans"

From Simple-Talk.com by Brad McGehee.

 

In fact, here's a list of a bunch of free RedGate/SimpleTalk eBooks.

eBook "SQL Server Statistics"

From Simple-Talk by Holger Schmeling.

How to Rebuild the System Databases (like Master) in SQL 2008

 

Default trace - A Beginner's Guide (SQL 2005 and beyond)

By Adam Haines at SQLServerCentral.com.

The article details how the system is capturing detailed info (that could answer "Whodunit?" types of questions) and is enabled by default.

"Guts of a Clustered Index" A September 14, 2010 blog post from "the DBA Whisperer", Michael J. Swart, which also details some .MDF internal details.

How to Connect to a SQL 2005 Server When You Are Completely Locked Out

From MSSQLTips by Rudy Panigas.

"Making a More Reliable and Flexible sp_MSforEachDB"

From MSSQLTips by Aaron Bertrand.

Iterating Through SQL Server Databases and Database Objects Without Cursors

From MSSQLTips by Arshad Ali. Also discusses the use of sp_ForEachDB and sp_ForEachTable.

SQL Server DMV Starter Pack

From Brad McGehee at RedGate; contains an eBook  and more than 30 scripts!

"Defining and Establishing SQL Server Policies and Procedures"

From MSSQLTips by Greg Robidoux.

Some Tips for Working with Big Fata Models

From SQLServerCentral.com by Mauro Pichiliani.

SQL Server Browser Service details

An MSDN reference.

Choosing a Network Protocol

(Info about Named Pipes, TCP/IP, etc.)

An MSDN reference.

"Leaving a DBA Job Gracefully"

From MSSQLTips by Alan Cranfield.

SQL 2012-specific References

 

Download the SQL 2012 Product Guide

Download RC0

SQL 2008-specific References 
(& SQL 2008 R2)

The product 'RTMd' in mid-August 2008

As of April 21, 2010, SQL 2008 R2 has reached RTM status.

See also this PR link.

What's New (SQL Server 2008 R2)

An MSDN resource listing what's new, changed, and unchanged.

Free eBook, "Introducing SQL Server 2008 R2"

by Ross Mistry and Stacia Misner.

What's New in SQL Server 2008

From Microsoft's SQL Server site.

SQL Server 2008 Upgrade Technical Reference Guide

A Word document from Microsoft Downloads. It's 15 chapters and two appendices!

SQL Server 2008 Edition comparison matrix

Hardware & Software Requirements, such as which Editions are compatible with which Operating Systems.

A Microsoft resource.

44 MSDN whitepapers on various SQL 2008 topics

 

SQL Server 2008 Management Studio Keyboard Shortcuts

An MSDN resource.

HierarchyID articles [in-progress]

 

by Itzik Ben-Gan, SQL Mag

SQL Server 2008 Change Data Capture

SQL Mag Instant Doc #100515, by Derek Comingore.

Using Change Data Capture (CDC) in SQL Server 2008

From MSSQLTips.com by Ray Barley.

Spatial Demo Goodness

 

SQL 2005-specific References

The product 'RTMd' November 7th or 8th 2005

 

Why Upgrade to SQL Server 2005?

A Microsoft reference (as a Word document)...30 pages including Case-study appendices!

Top 30 Features of SQL Server 2005

A Microsoft reference divided into:
Top 10 Features for Database Administration
Top 10 Features for Development
Top 10 Features for Business Intelligence

Microsoft Events...Upgrade Your Skills (SQL Server 2005)

Webcasts, Virtual Labs, and Podcasts!

A list of the new features and improvements that are included in SQL Server 2005 SP1

KB 916940

What's New in SQL Server 2005 SP2

Upgrade SQL Server Components

An MSDN reference regarding the upgrade of the Database Engine,
Analysis Services,
Data Transformation Services,
Reporting Services, and more.

Microsoft SQL Server 2005 webcasts...

...includes webcasts from Kimberly Tripp for SQL 2000 DBAs as well as for those starting new with SQL

SQL Server 2005 Upgrade Handbook

A Microsoft resource (long web page).

SQL Server 2005 Upgrade Advisor

Downloadable preparatory software tool from Microsoft

Feature Comparisons...

From MDSN. Extremely thorough [wacky URL].

SQL Server Integration Services (SQLIS.com)

Reference website.

Some interesting facts on Database Snapshots...

...such as finding out how much space is occupied by the snapshot pages. A blog entry by a SQL MVP.

"SQL Server Profiler: Features, Functions and Setup in SQL Server 2005"

Found at SearchSQLServer.com.

Database Concurrency and Row Level Versioning in SQL 2005

A Microsoft TechNet resource.

Learn more about SQL Server 2005 with these podcasts

From www.sqldownunder.com.

SQL Server 2005 Features Comparison

An outstanding feature comparison by Microsoft.

Scalable Shared Databases in SQL Server 2005

Microsoft Knowledge Base article Q910378.

SSL and SQL Server 2005

An MSDN Blog entry.

SQL Server 2005 Replication

SQL Server 2008 Replication

Microsoft website references.

Transactional Replication Setup From SQLServerCentral.com by Abi Chapagai. Quite a number of screenshots, too.

Understanding and Managing the suspect_pages Table

i.e., after you fix torn pages why they still appear in msdb.dbo.suspect_pages? This article helps you understand more.

Thanks, student Mike Blake (Troy, MI) for asking the question about the suspect_pages table which led to this link.

Partitioned Tables and Indexes in SQL Server 2005

Excellent, thorough reference from Kimberly Tripp on MSDN. Or this URL.

Designing Partitions to Manage Subsets of Data

The code to go along with the above example. (Sliding Window example)

MSDN resources which shows how to load into and switch partitions. Great example.

 

Hide a SQL Server 2005 Instance

A blog post from Stefano Demiliani.

A Clever Way to Connect to a Hidden Named Instance

SQL Mag, Instant Doc #96058.

Exploring Table and Index Partitioning in SQL Server 2005

Interesting article by Rob Garrison of SQLJunkies.com.

 

Clustering & High Availability Resources and Links See the Third Party Tools section also!

 

Make sure you check out my Virtualization home page, which has some clustering links specifically related to virtualization.

 

SQL Server 2000 Failover Clustering

A webpaper from Microsoft.

 

SQL Server 2005 Failover Clustering White Paper

A downloadable paper from Microsoft.

 

SQLShare website (formerly known as "JumpstartTV")

A site assembled from Microsoft MVP Brian Knight, with many multimedia presentations about various technology areas, such as Windows Clustering, SQL Server, including installing SQL Server into a Cluster.

Database Mirroring Best Practices and Performance Considerations

Microsoft TechNet reference

Microsoft SQL Server 2000 High Availability Series

MS TechNet resource.

Some topics include:

Implementing Failover Clustering
Implementing Log Shipping
Implementing Transactional Replication
Implementing Network Load Balancing
Implementing Remote Mirroring and Stretch Clustering

Comparison of High Availability Technologies - COMPLETED.doc
Comparison of High Availability Technologies - BLANK.doc

Comparison of High Availability Technologies - COMPLETED.PDF
Comparison of High Availability Technologies - BLANK.PDF

Primarily a reference/resource for Microsoft Course 2788A, Designing High Availability Database Solutions with SQL Server 2005

Other Reference Articles & Websites

 

 

With NOLOCK (Home of the Dirty Read)

Reference website, Blogs, and downloads. Some MDX stuff too.

SQL Server Best Practices

Microsoft TechNet huge list of resources such as deep whitepapers and tools.

Database Journal Daily Database News, Information and Tutorials for the Database Professional

  

Database theory essay-ON JIM GRAY'S CALL TO ARMS

Controversial article about database theory.

DBAzine.com SQL Server

"The online community for database issues and solutions".

Erland Sommarskog's home page (a SQL Reference)

 

OpenRowSource and OpenRowSet in SQL Server 2000

From databasejournal.com

Join Strategies

Reference information

The ABCs of BCP (Bulk Copy)

 

Building a Package in the DTS Designer
(excellent tutorials at this site)

From SQLDTS.com

There are a surprising number of DTS book titles available for DTS help also.

SQLDev.Net

 

History of MS SQL Server versions
     See also this article at Microsoft's site

See Instant Doc 37471 at SQL Server Magazine

SQL Course.com website

Free, interactive, online SQL Training (database agnostic [not specific to a particular database brand])

SQLCourse2.com website

See "SQLCourse.com" above

Interesting info on the Slammer/Sapphire Worm from CAIDA

 

Database Debunkings website

by Fabian Pascal

An article on SQL Server "Security Account Delegation"

Relates to Linked Servers (Q319723)

SQLSkills

Reference blogsite/website from Kimberly Tripp, Bob Beauchemin (both SQL MVPs) and others.

Microsoft's SQL Server 2000 Best Practices Analyzer (BPA)

Downloadable tool from Microsoft.

Simon Sabin's blog (UK consultant and SQL MVP)

This particular link lists a number of videos available from SQLBits V.

A lesson on database normalization

From DatabaseJournal.com, Ian Gilfillan.

Visio Add-in for SQL Server

Free Visio Add-in from Microsoft. Has videos and reference documentation also.

How to map the \MSSQL.n\ folder to its parent component

See BOL "File Locations for Default and Named Instances of SQL Server 2005".

Look at the HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\Instance Names\{SQL or OLAP or RS "Instance Name"=MSSQL.1"

Simple-Talk, "SQL Server and .NET put Simply"

Reference website, some interesting articles found there, such as Partitioned Tables in SQL 2005 and XML references.

What is a DBA? (six part series from the DBAZine website)

  

See my Copy, Move, Rename, Detach, & Attach Database procedure page

 

 

What if you rename the Operating System that SQL Server sits on?

Q303774

How to Set Up SQLMail and SQLAgentMail

Q263556

SQLMail and Outlook 2003

Sometimes SQL Server is limited to using Outlook 2000...many other good mail/SQL related links in Q897349

A Useful Article on Database Normalization

 

Which edition and version of SQL Server 2000 do I have?
(i.e., Which Service Pack has been applied?)

Microsoft KnowledgeBase Q321185

How do SQL Server 2000 & AD relate?

WindowsITPro article #41841

How To Set the SQL Server Network Library in an ADO Connection String

Microsoft KB238949

• dbnmpntw - Win32 Named Pipes
• dbmssocn - Win32 Winsock TCP/IP
• dbmsspxn - Win32 SPX/IPX
• dbmsvinn - Win32 Banyan Vines
• dbmsrpcn - Win32 Multi-Protocol (Windows RPC)

How to configure an instance of SQL Server to listen on a specific TCP port or a dynamic port

Microsoft KB823938 

  1. Understanding SQL Server Backups

  2. Understanding Logging & Recovery

  1. The first in a series of three Microsoft TechNet articles  by Paul S. Randal.

  2. Also by the master, Paul S. Randal, and talks about virtual files.

How to determine the patch and service pack level your SQL Instance

From SQLSecurity.com. One of my students, Ken Klaft (Toledo, OH) maintains this page.

SQL Performance related links See the Third Party Tools section also!

 

Execution Plan Basics

 

Or, download his eBook,
"Dissecting SQL Server Execution Plans"

By Grant Fritchey, of Red Gate / Simple-Talk.

"Mastering SQL Server Profiler - eBook"

By Brad McGehee at Red Gate.

SQL Event Class Integer Value Mappings from InsideSQL.de

This may help whether you're a German language speaker or not.

 

SQL-Server-Performance.com

SQL-Server-Performance.com reference website.

Check also the screen captures of SQL Server cluster installation steps.

Free tool, SQLQueryStress

A performance testing tool by Adam Machanic.

The Fill-Factor Truth

More Fill-Factor Mysteries

Do the Splits

by Kalen Delaney, SQL Mag InstantDoc 19851

...and InstantDoc 20242

...and InstantDoc 20589

 

Evaluating the Page Splits/Sec Value

SQL Mag InstantDoc 24382

 

Troubleshooting Performance Problems in SQL Server 2005

A Microsoft TechNet reference.

 

Introducing SQL Internals Viewer .11 Beta by Danny Gould

"...a tool for looking into the SQL Server storage engine and seeing how data is physically allocated, organised and stored. Free.

Found at www.SQLInternalsViewer.com

SQLNexus

Uses SQLDiag in the back-end. SQLMag InstantDoc# 96744.

 

Get your free SQL Server Perfmon Counters poster

By Quest, a PDF. Free. And don't forget to look at the video tutorial on the same subject found at this same link.

"Clustered Index Seek vs. Scan"

 

"Indexing Best Practices", by Kimberly Tripp

 

SQL Server Query Execution Plan Analysis

 

Clustered Index Scan Showplan Operator {MSDN BOL}

 

Clustered Index Seek Showplan Operator {MSDN BOL}

   

Processing XML Showplans Using SQLCLR in SQL Server 2005

This article shows how to write an app that extracts estimated execution from XMLShowplan and then limits execution based on a predefined threshold.

How Does the AutoUpdate Statistics (AutoStats) Feature Work?

Microsoft KB Article 195565.

 

Statistics Used by the Query Optimizer in Microsoft SQL Server 2000

How does SQL Server Use (Index Distribution) Statistics?

 

Using SQL Server Profiler Black Box feature

by Kalen Delaney on SQLMag, InstantDoc #16078.

 

A book excerpt on SQLDiag and Black Box Profiler

From "SQL Server 2000 for Experienced DBAs" written by Brian Knight

9 Things to Do When You Inherit a Database

By Sylvia Moestl Vasilik at SQLServerCentral.com.

The Winter Corp inventories the largest databases on the planet...

...which they call "The Top 10 Program".

 

Third Party Vendor Tools for SQL Server  

 

Apex SQL Tools

There are several tools, including:  ApexSQL Dev Studio, ApexSQL Univ Studio, ApexSQL Audit, ApexSQL Clean, ApexSQL Code, ApexSQL Diff, ApexSQL Doc, ApexSQL Edit, ApexSQL Log, ApexSQL Report,
ApexSQL Script

Charonware (now Quest) TOAD Data Modeler

Freeware, at least at one point. I think you have to buy it now.

Embarcadero Technologies

 

Idera SQL Check

A free SQL Server performance monitoring dashboard.

Lumigent Log Explorer   (see also ApexSQL Log)

A tool to read the Log file, roll back...VERY NIFTY tool. The demo comes with a tutorial...huge!

Neverfail for Microsoft SQL Server

an HA solution from NeverfailGroup

Red-Gate's "Refactor" (also linked up above)

 

WANSync & WANSyncHA

an HA solution from XOSoft

Quest

They make a number of tools

Ignite for SQL Server, a "performance intelligence" tool

by Confio

Gridscale for SQL Server, a High Availability product

by xkoto; the product is currently in beta (July 2008)

"Essential SQL Server Tools"

An article from Windows IT Pro (Instant Doc 38737) that describes SQL add-ons

Dundas Chart for Reporting Services

 

Chart FX by Software FX

 

Microsoft Express Editions (the download link)

Such as...
Visual Web Developer 2005 Express Edition
Visual Basic 2005 Express Edition
SQL Server 2005 Express Edition

Video Series: SQL Server 2005 Express Edition for Beginners

Nifty resource from Microsoft. Formerly at this URL.

Express Edition Beginning Developer Learning Center

 

Get Started section of the www.ASP.net website

A number of multi-media presentations to learn more about ASP .Net including starting with Visual Web Developer Express.

Recommended SQL-related books  

 

My library books here...

Or, do a search on this site for "library" which will get you to my list of library books.


SQL Server Security

 
General Security, Encryption, and more...

Free eBook, "Protecting SQL Server Data"

by John Magnabosco; a Simple-Talk resource.

At the time of linking to this the download actually included three other eBooks!

Decrypt SQL Server Objects

SQLMagazine reference by Omri Bahat, InstantDoc #95728.

Understanding When Kerberos Delegation Is Needed for SQL Server

From MSSQLTips, by K. Brian Kelley.

How to Implement Kerberos Constrained Delegation with SQL Server 2008

An MSDN resource by Kevin McDonnell.

Decrypt SQL Server Objects

SQLMagazine reference by Omri Bahat, InstantDoc #95728.

Stop SQL Injection Attacks Before They Stop You

An MSDN resource.

3 Free Tools that Prevent SQL Injection Attacks

by Kevin Kline, SQLMag Instant Doc #100720, February 2009.

DatabaseSecurity.com

 

SQLPing utility, used to find all instances of SQL Server on your network

From SQLSecurity.com. Thanks, Ken Klaft, for notifying me of this utility.

SQL Server 2005 security - Part 3 Encryption

A DatabaseJournal.com article by Marcin Policht.

SQL Server 2005 Encryption Key Hierarchy

A Microsoft MSDN Reference and picture.

Protecting Connection Strings and Other Configuration Information

Microsoft MSDN Reference (there is also a C# version of this tutorial, but I bookmarked the VB .NET version).

Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication

Microsoft MSDN Reference, detailed, fairly lengthy

SQL Server Database Guest User Account

From MSSQLTips.

Hack Your Database Before the Hackers Do

SQLMag May 2008, InstantDoc #98576.

The Complete SQL Server 2005 Permissions Report

A script, by Richard Lu, at SQLServerCentral.com, to inventory all permissions for logins. Very nifty.

Retrieving SQL Server Permissions for Disaster Recovery

 

TDE, EKM and the Asymmetric Key

A SQLServerCentral.com post by Doug Lutz.

Configuring the Windows Firewall to Allow SQL Server Access

Microsoft MSDN Reference.

   

Miscellaneous Resources

 

MSSQLTips.com list of Webcasts

The webcasts cover all sorts of topics.

SQLWorkshops.com list of Webcasts

The webcasts cover all sorts of topics, including "Truly Level 400 Performance Monitoring & Tuning".

Free eBook: SQL Server Crib-Sheet Compendium

From Simple-Talk. Covers many areas of the product including data warehousing, Reporting Services, XML, and more.

"SQL Server Tacklebox - eBook",
by Rodney Landrum

From Simple-Talk. Covers many topics related to DBAs.

Best of SQLServerCentral.com - Volumes 1-4

Best of SQLServerCentral.com - Volume 5

Best of SQLServerCentral.com - Volume 6

Best of SQLServerCentral.com - Volume 7

Articles from SQLServerCentral.com, compiled in eBook format.

"Confessions of an IT Manager - eBook"

By "Phil Factor" at Simple-Talk.

Rip-Off! - the Free Ebook

From Simple-Talk,...

"The scandalous inside story of the consulting money machine. Lying, cheating, falsifying results, plagiarism, incompetence, manipulation, tax evasion, expenses fraud, sex and alcohol abuse..."