Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Welcome to

A Microsoft SQL Server community of 1,868,350 DBAs, developers and SQL Server users

Headlines today   September 26, 2016

Bones of SQL – Grouping By User-Defined Calendar Periods

Although it is common to group by periods such as Week, Month, or Quarter, sometimes alternative periods are needed. This simple technique lets you split a year into periods with any number of days.  Read more...
By Bob Hovious 2016/09/26 | Source: | Category: date manipulation
Rating: |  Discuss |   Briefcase | 665 reads

Expanding the uses of DBCC CLONEDATABASE

Erin Stellato goes into detail about some practical use cases for a new DBCC command in SQL Server 2014 SP2 : DBCC CLONEDATABASE.  Read more...
By Additional Articles 2016/09/26 | Source: | Category: dbcc clonedatabase
Rating: (not yet rated)  Rate this |   Briefcase | 1,127 reads
Previous headlines

Stairway to Advanced T-SQL Level 5: Turning Data On Its Side Using PIVOT Operator

The PIVOT operator was added to the Transact-SQL language in SQL Server 2005. It allows you to turn your row data on its side, so it can be presented as column data. This is useful when you want take unique column values and have them displayed as column headings, where the column headings are associated with summarized values displayed below each column heading. In this article I will be exploring how to use the PIVOT operator.   Read more...
By Gregory Larsen 2016/09/23 (first published: 2015/05/27) | Source: | Category: stairway series
Rating: |  Discuss |   Briefcase | 9,859 reads

Querying Multiple MySQL Tables

It’s been said that one of the drawbacks to normalization to the third form (3NF) is more cumbersome data extraction due to the greater number of tables. These require careful linking via JOIN clauses. Improper table joining can easily result in erroneous results or even in the dreaded Cartesian Product. In today’s article, Rob Gravelle explores how table joins are achieved in MySQL.  Read more...
By Additional Articles 2016/09/23 | Source: Database Journal | Category: mysql
Rating: (not yet rated)  Rate this |   Briefcase | 1,872 reads

Audit and Compliance Survey

Redgate are trying to understand the broad problem of auditing and compliance from a database perspective. Though it's a wide-ranging topic, they're particularly interested in better understanding pain points in the area. Additional to the survey, they're also offering a $30 Amazon voucher for anyone who would be willing to participate in a short phone call.  Read more...
By 2016/09/23 | Source: Redgate | Category: redgate
Rating: (not yet rated)  Rate this |   Briefcase | 1,918 reads

Monitor up-time and connectivity with Powershell

Use Powershell to troubleshoot SQL connectivity issues. A way to monitor up-time and connectivity of a SQL server database with some simple Powershell commands.  Read more...
By David Rich 2016/09/22 | Source: | Category: powershell
Rating: |  Discuss |   Briefcase | 924 reads

AT TIME ZONE – a new favourite feature in SQL Server 2016

Rob Farley explains why AT TIME ZONE is his new favourite feature in SQL Server 2016, but also shows that it can make a mess of cardinality estimates.  Read more...
By Additional Articles 2016/09/22 | Source: | Category: sql server 2016
Rating: (not yet rated)  Rate this |   Briefcase | 2,569 reads

Code completion, formatting and refactoring for SQL Server

A common misconception is that Redgate’s SQL Prompt is ‘just’ a code completion tool. While this is indeed at the heart of SQL Prompt, there are a host of features that will help you and your team work more quickly and efficiently, freeing you up to concentrate on the important stuff. Take a whistle stop tour around SQL Prompt in this short demo.  Read more...
By 2016/09/22 | Source: Redgate | Category: redgate
Rating: (not yet rated)  Rate this |   Briefcase | 2,133 reads

Stairway to DAX and Power BI - Level 11: Function / Iterator Function Pairs: The DAX Concatenate() and ConcatenateX() Functions

Continuing his examination of the evolving DAX “Function / Iterator Pairs,” Business Intelligence Architect, Analysis Services Maestro, Microsoft Data Platform MVP and author Bill Pearson introduces the DAX Concatenate() and ConcatenateX() functions, discussing the syntax, uses and operation of each. He then provides hands-on exposure to Concatenate() and ConcatenateX(), in joining two text strings into a single text string, and in returning the concatenation of an expression evaluated for each row in a table, respectively.  Read more...
By Bill Pearson 2016/09/21 | Source: | Category: dax
Rating: |  Discuss |   Briefcase | 685 reads

Free eBook: SQL Server Transaction Log Management

When a SQL Server database is operating smoothly and performing well, there is no need to be particularly aware of the transaction log, beyond ensuring that every database has an appropriate backup regime and restore plan in place. When things go wrong, however, a DBA's reputation depends on a deeper understanding of the transaction log, both what it does, and how it works.  Read more...
By Press Release 2016/09/21 (first published: 2013/08/14) | Source: Redgate | Category: transaction log
Rating:  Rate this |   Briefcase | 76,260 reads
Ask SQL Server Central

From the SQLServerCentral Blogs

Setting DBCC 1222 on startup

The following command is run to gain details on deadlocks. DBCC TRACEON (1222,-1) However, once the SQL instance is restarted this...  Read more...
By SqlBarbarian 2016/09/26 | Source: SQLServerCentral Blogs | Category: blogs
Rating: (not yet rated) |  Discuss |   Briefcase | 625 reads

Using an ORDER BY in a view

For many years it’s been a best practice to never put an ORDER BY in a view. The idea is...  Read more...
By Kenneth Fisher 2016/09/26 | Source: SQLServerCentral Blogs | Category: blogs
Rating: (not yet rated) |  Discuss |   Briefcase | 1,504 reads
Question of the Day

Comparing with NULL

By Thomas Franz 2016/09/26 | Category: null
Rating: (not yet rated) |  Discuss |   Briefcase | 623 reads

What will be the result of the following query:

           WHEN (9999 = NULL) THEN
        WHEN NOT (9999 = NULL) THEN

Top Members (last 30 days)
# Name Score Level
30 days All-time
517 2104 SSCrazy  
GP Van Eron
389 2224 SSCrazy  
250 354 Old Hand  
Jeff Moden
198 41429 SSC-Forever  
Preethi S Raj
187 1038 Ten Centuries  
Latest forum posts