Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Welcome to

A Microsoft SQL Server community of 1,778,200 DBAs, developers and SQL Server users

Headlines today   January 29, 2015

Database ownership and TRUSTWORTHY

Database ownership is an old topic for SQL Server pro's. Check this simple lab to learn the risks your databases can be exposed to.  Read more...
By Raul Gonzalez 2015/01/29 | Source: | Category: security
Rating: |  Discuss |   Briefcase | 1,872 reads

Using T-SQL to Perform Z-Score Column Normalization in SQL Server

In data mining, we sometimes need to perform techniques such as Z-score normalization on numeric data type columns to prevent one column from skewing or dominating the models produced by the machine learning algorithms. Dallas Snider explains how to perform this in SQL Server with T-SQL code.  Read more...
By Additional Articles 2015/01/29 | Source: | Category: normalization
Rating: (not yet rated)  Rate this |   Briefcase | 3,761 reads
Previous headlines

Stairway to Advanced T-SQL Level 2: Using the APPLY Operator

The APPLY operator allows you to join a record set with a function, and apply the function to every qualifying row of the table (or view). The APPLY operator takes on two formats: CROSS APPLY, or OUTER APPLY. This article will explain the differences between these two formats, and show you examples of how each of these formats work.  Read more...
By Gregory Larsen 2015/01/28 | Source: | Category: stairway series
Rating: |  Discuss |   Briefcase | 6,612 reads

Free eBook: Performance Tuning with SQL Server Dynamic Management Views

Dynamic Management Views (DMVs) are a significant and valuable addition to the DBA's troubleshooting armory, laying bare previously unavailable information regarding the under-the-covers activity of your database sessions and transactions.  Read more...
By Additional Articles 2015/01/28 (first published: 2013/08/21) | Source: Red-Gate | Category: performance tuning
Rating:  Rate this |   Briefcase | 47,556 reads

Why Developers Need to Understand Execution Plans

If you can examine and understand execution plans, you can achieve better understanding of the database system and you will write better database code. Grant Fritchey shows you how.  Read more...
By Additional Articles 2015/01/28 | Source: SimpleTalk | Category: execution plan
Rating: (not yet rated)  Rate this |   Briefcase | 4,695 reads

Data Mining Part 23: Security

In this chapter we will talk about security recommendations for SQL Server Data Mining.  Read more...
By Daniel Calbimonte 2015/01/27 | Source: | Category: roles
Rating: |  Discuss |   Briefcase | 1,442 reads

Grant Fritchey Reviews Minion Reindex

Grant Fritchey reviews Midnight DBA's Minion Reindex, a highly customizable set of scripts that take on the task of rebuilding and reorganizing your indexes.   Read more...
By Grant Fritchey 2015/01/27 | Source: | Category: indexing
Rating: |  Discuss |   Briefcase | 1,091 reads

Finding Encrypted Data in a SQL Server Database

The easiest way to determine if there is encrypted data in a database is to get that information from whoever wrote the application. Aside from that, there are a few things you can look for which would suggest that you have encrypted data in a given database.  Read more...
By Additional Articles 2015/01/27 | Source: | Category: encryption
Rating: (not yet rated)  Rate this |   Briefcase | 4,269 reads

Selecting from sub-queries as tables

Using sub-queries as tables only requires an alias 
By Ben Kubicek 2015/01/26 | Source: | Category: sub-queries
Rating: |  Discuss |   Briefcase | 9,153 reads

SQL Prompt Tip #7 - Begin End Highlighting

This SQL Prompt tip shows you how code highlighting makes it easier to find which items match up with each other.  Read more...
By Steve Jones 2015/01/26 | Source: | Category: sql prompt
Rating: |  Discuss |   Briefcase | 1,783 reads
Ask SQL Server Central

From the SQLServerCentral Blogs

SQL- Querying XML attributes from XML Column

Read XML column attributes in to two columns DimType and Dimvalue  from the below example also retrieve the data matching...  Read more...
By Prashanth Jayaram 2015/01/29 | Source: SQLServerCentral Blogs | Category: blogs
Rating: (not yet rated) |  Discuss |   Briefcase | 3,876 reads

SQL Judo’s Monthly Challenge – February 2014 – KILL with the DAC

Every month SQL Judo (Russ Thomas) (b/t) challenges us to do his Monthly DBA Challenge. I’ve decided it would be...  Read more...
By Kenneth Fisher 2015/01/29 | Source: SQLServerCentral Blogs | Category: blogs
Rating: (not yet rated) |  Discuss |   Briefcase | 2,460 reads
Question of the Day

SOME rows

By Steve Jones 2015/01/29 | Category: t-sql
Rating: (not yet rated) |  Discuss |   Briefcase | 976 reads

How many rows are returned?

CustomerID int
, Salesyear char(4)
, complete tinyint
, amount int
INSERT INTO dbo.sales
( CustomerID
, Salesyear
, complete
, amount
( 1, '2013', 1, 100)
, ( 1, '2013', 1, 200)
, ( 1, '2014',... 
Top Members (last 30 days)
# Name Score Level
30 days All-time
623 833 SSC Eights!  
517 622 SSChasing Mays  
Jeff Moden
452 36325 SSC-Dedicated  
370 2008 SSCrazy  
RK Mandava
366 2336 SSCrazy  
Latest forum posts