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

Articles with tag T-SQL Rss

Search for any content tagged t-sql

   Items 1 to 20 of 971    Next 20 >>
 

Tips to optimize your SQL statements

Don't blame SQL Server if your SQL Statements perform badly! But where do you start to investigate the problem? This article is a primer on were to start looking when your SQL runs slowly.  Read more...
By Brian Ellul 2012/02/10 (first published: 2010/07/29) | Source: SQLServerCentral.com | Category: performance tuning
Rating: |  Discuss |  Briefcase | 31,741 reads

TSQL function to detect SQL Agent job state

This article has a T-SQL function to detect the SQL Agent job state.  Read more...
By Bret Lowery 2012/02/07 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 6,646 reads

Aggregate Function Product()

The TSQL aggregate function SUM() gives a number based on the addition of the values of multiple rows to each other. Do the same thing but with multiplication instead of addition.   Read more...
By Paul McPherson 2012/02/06 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 7,244 reads

Do you know your getdate()?

This article takes a closer look at SQL Server getdate() and sysdatetime() functions.  Read more...
By Jacek Osuchowski 2012/02/03 (first published: 2010/05/12) | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 26,476 reads

Twist in ISNULL function

Be careful while using the ISNULL function  Read more...
By Ashutosh Pandey 2012/02/02 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 22,347 reads

Post a Twitter Status Update using T-SQL

Learn how to post a Twitter status update with 5 lines of T-SQL using a third party library.  Read more...
By Michael Malmgren 2012/02/02 | Source: SQLServerCentral.com | Category: twitter
Rating: |  Discuss |  Briefcase | 1,900 reads

Old Dog, New Tricks

Steve Jones learns a new trick working with T-SQL, and is surprised how easy it is. He recommends you work on updating your skills over time as well.  Read more...
By Steve Jones 2012/02/02 | Source: SQLServerCentral.com | Category: editorial
Rating: (not yet rated) |  Discuss |  Briefcase | 311 reads

Solving the Running Total and Ordinal Rank Problems (Rewritten)

Revisiting his very popular article on the running total and ordinal rank problems, MVP Jeff Moden brings us a detailed analysis of how you might want to implement a solution in T-SQL.  Read more...
By Jeff Moden 2012/01/27 (first published: 2009/11/10) | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 22,233 reads

How to get monthly YTD data

This article presents an easy method to get YTD data grouped by months in T-SQL.  Read more...
By Kautuk 2012/01/24 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 10,114 reads

Sub query expressions vs. Joins.

Do sub query expressions introduce a performance penalty on retrieving large data sets?  Read more...
By Brian Ellul 2012/01/20 (first published: 2010/07/22) | Source: SQLServerCentral.com | Category: table spool operator
Rating: |  Discuss |  Briefcase | 27,758 reads

Understanding and Using APPLY (Part 2)

The second of a series by Paul White examining the APPLY operator. In this section learn how this operator compares with joins and about both the cross and outer options.  Read more...
By Paul White 2012/01/13 (first published: 2010/04/19) | Source: SQLServerCentral.com | Category: apply
Rating: |  Discuss |  Briefcase | 16,846 reads

Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause

In this article I will be expanding on my discussion of the GROUP BY clause by exploring the ROLLUP, CUBE and GROUPING SETS operators. These additional GROUP BY operators make it is easy to have SQL Server create subtotals, grand totals, a superset of subtotals, as well as multiple aggregate groupings in a single SELECT statement.  Read more...
Rating: (not yet rated) |  Discuss |  Briefcase | 343 reads

Understanding and Using APPLY (Part 1)

The first of a two-part series of articles examining the APPLY operator. Learn the basics of how this operator works and how it can help you solve some tricky problems.  Read more...
By Paul White 2012/01/06 (first published: 2010/04/12) | Source: SQLServerCentral.com | Category: apply
Rating: |  Discuss |  Briefcase | 29,448 reads

T-SQL Development, or: How I Learned to Stop Worrying and Love Word

Microsoft Office Word is useful. There, I have confessed it, it's useful to me while I am working with TSQL. It's possibly only the search and replace function that I like but it's wrapped in Word so I have to take it like that. I use it a lot to help me capture the results of a stored procedure.  Read more...
By Additional Articles 2012/01/06 | Source: SimpleTalk | Category: t-sql
Rating:  Rate this |  Briefcase | 3,361 reads

Stairway to T-SQL DML Level 7: Summarizing Data Using a Simple GROUP BY Clause

In this article you will be see how to group data using the simple GROUP BY clause, in order to summarize more complex data.  Read more...
By Gregory Larsen 2012/01/04 | Category: stairway series
Rating: |  Discuss |  Briefcase | 5,738 reads

XML-XSL Transformations in SQL Server

With the release of Master Data Services (MDS) for SQL Server 2008R2, it is now possible to perform XML transformations on the database server.  Read more...
By Cem Güler 2012/01/04 | Source: SQLServerCentral.com | Category: mds
Rating: |  Discuss |  Briefcase | 2,062 reads

Pros and cons of six SQL table tools

This article shows how to use 6 SQL table-based tools to solve the same problem, and gives the pros and cons of each.  Read more...
By Andy Owl 2011/12/26 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 7,890 reads

Intersect, Except, Union, All and Any

Longtime author and expert DBA David Poole examines a few T-SQL commands that he has never used. Learn how some of these little used T-SQL items function and see if they work for you.  Read more...
By David Poole 2011/12/23 (first published: 2009/07/20) | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 38,330 reads

Building Ranges using T-SQL

We often use excel for any running repetitive calculations since it is a very convenient user friendly interface which allows us to just enter a formula in a cell and simply drag and drop the formulas to generate a complete output.   Read more...
By Additional Articles 2011/12/16 | Source: SQL Server Performance | Category: t-sql
Rating:  Rate this |  Briefcase | 4,158 reads

Stairway to T-SQL DML Level 6: The Basics of Sorting Data Using the ORDER BY Clause

In this Level you will see how to use the ORDER BY clause to return your data in a sorted order.  Read more...
By Gregory Larsen 2011/12/14 | Category: stairway series
Rating: |  Discuss |  Briefcase | 5,412 reads
   Items 1 to 20 of 971    Next 20 >>