Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Articles with tag
t-sql
Search for
any
content tagged
t-sql
<< Previous 20
Items 41 to 60 of 1064
Next 20 >>
Tip: Resetting Identity Fields
How to reset an identity field to the next contiguous value, after deletions.
Read more...
By
Banyardi Schmardi
2012/12/03
|
Source:
SQLServerCentral.com
|
Category:
dbcc checkident
Rating:
|
Discuss
|
Briefcase
|
8,273 reads
Splitting Strings Based on Patterns
Splitting strings based on patterns supported by LIKE and PATINDEX can be an interesting way to address a wide variety of problems.
Read more...
By
Dwain Camps
2012/11/29
|
Source:
SQLServerCentral.com
|
Category:
string manipulation
Rating:
|
Discuss
|
Briefcase
|
9,281 reads
Returning the Top X row for each group (SQL Spackle)
One of the most common T-SQL questions is on returning a ranked result set for each member of a group. Dave Ballentyne brings us a short tutorial on how you can do this in T-SQL.
Read more...
By
Dave Ballantyne
2012/11/23 (first published: 2010/12/06)
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
28,542 reads
Generating SubTotals using GROUPING
This article explains how to use the GROUPING clause to generate subtotals for rows in a very easy fashion.
Read more...
By
Sunil Chandurkar
2012/11/16 (first published: 2010/07/13)
|
Source:
SQLServerCentral.com
|
Category:
groouping
Rating:
|
Discuss
|
Briefcase
|
26,365 reads
Hierarchies on Steroids #2: A Replacement for Nested Sets Calculations
In this sequel to his first "Hierarchies on Steroids" article, SQL Server MVP Jeff Moden shows us how to build a pre-aggregated table that will answer most of the questions that you could ask of a typical hierarchy. Any bets on whether Santa is packin’ a Tally Table in his bag or not?
Read more...
By
Jeff Moden
2012/11/15
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
5,836 reads
Hierarchies on Steroids #1: Convert an Adjacency List to Nested Sets
SQL Server MVP Jeff Moden shows us a new very high performance method to convert an "Adjacency List" to “Nested Sets” on a million node hierarchy in less than a minute and 100,000 nodes in just seconds. Not surprisingly, the "steroids" come in a bottle labeled "Tally Table".
Read more...
By
Jeff Moden
2012/11/13
|
Source:
SQLServerCentral.com
|
Category:
hierarchy
Rating:
|
Discuss
|
Briefcase
|
7,996 reads
Parsing Parameters in a Stored Procedure
This article shows a clean non-looping method to parse comma separated values from a parameter passed to a stored procedure.
Read more...
By
Diego Buendía
2012/11/02 (first published: 2010/08/10)
|
Source:
SQLServerCentral.com
|
Category:
array
Rating:
|
Discuss
|
Briefcase
|
28,020 reads
SQL Server Function to return a range of dates
A quick solution is a table function that will create a date range based on the parameters given. Then, you can just join to the results.
Read more...
By
Additional Articles
2012/11/02
|
Source:
MSSQLTips.com
|
Category:
date manipulation
Rating:
Rate this
|
Briefcase
|
4,092 reads
Routine Dependency Visualizer
This article contains a T-SQL script that can show you the dependency of all objects in your SQL Server database.
Read more...
By
Angel Rapallo
2012/10/30
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
3,881 reads
Stairway to T-SQL DML Level 10: Changing Data with the UPDATE Statement
Unless you are working on a reporting-only application you will probably need to update tables in your SQL Server database. To update rows in a table you use the UPDATE statement. In this level we will be discussing how to find and update records in your database, and discuss the pitfalls you might run into when using the UPDATE statement.
Read more...
By
Gregory Larsen
2012/10/10
|
Category:
stairway series
Rating:
|
Discuss
|
Briefcase
|
5,988 reads
CPU and Scheduler Performance Monitoring using SQL Server and Excel
This article will demonstrate a method of creating an Excel-based CPU/scheduler performance dashboard for SQL Server 2005+.
Read more...
By
Derek Colley
2012/10/04
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
6,815 reads
Matrix Math in SQL
Relational Datbases have tables as data structures, not arrays. This makes it tricky and slow to do matrix operations, but it doesn't mean it is impossible to do. Joe gives the Celko Slant on how to go about doing Matrix Math in SQL.
Read more...
By
Additional Articles
2012/10/04
|
Source:
SimpleTalk
|
Category:
t-sql
Rating:
(not yet rated)
Rate this
|
Briefcase
|
3,306 reads
A simple T-SQL statement to create a list of lookup values
In this article, we provide a simple way to get a comma delimited list from a table of entries without having to use a CURSOR or a WHILE loop to read through the table.
Read more...
By
Suresh G. Kumar
2012/09/28 (first published: 2011/03/21)
|
Source:
SQLServerCentral.com
|
Category:
cursor
Rating:
|
Discuss
|
Briefcase
|
32,893 reads
Stairway to T-SQL DML Level 11: How to Delete Rows from a Table
You may have data in a database that was inserted into a table by mistake, or you may have data in your tables that is no longer of value. In either case, when you have unwanted data in a table you need a way to remove it. The DELETE statement can be used to eliminate data in a table that is no longer needed. In this article you will see the different ways to use the DELETE statement to identify and remove unwanted data from your SQL Server tables.
Read more...
By
Gregory Larsen
2012/09/19
|
Category:
stairway series
Rating:
|
Discuss
|
Briefcase
|
9,036 reads
Fun with Outer Joins
Learn how an outer join works and how you can use it in your applications to find the results you need when matching data isn't in all your tables.
Read more...
By
Kenneth Fisher
2012/09/10
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
10,701 reads
Key Word Searches
This article from Todd Fifield shows a Way to avoid the dreaded LIKE operator in your queries and dramatically speed up keyword searches.
Read more...
By
Todd Fifield
2012/09/07 (first published: 2011/02/28)
|
Source:
SQLServerCentral.com
|
Category:
string manipulation
Rating:
|
Discuss
|
Briefcase
|
34,550 reads
Stairway to T-SQL DML Level 9: Adding Records to a table using INSERT Statement
Not all applications are limited to only retrieving data from a database. Your application might need to insert, update or delete data as well. In this article, I will be discussing various ways to insert data into a table using an INSERT statement.
Read more...
By
Gregory Larsen
2012/09/05
|
Source:
SQLServerCentral.com
|
Category:
stairway series
Rating:
|
Discuss
|
Briefcase
|
6,575 reads
The Seven Sins against T-SQL Performance
There are seven common antipatterns in T-SQL coding that make code perform badly, and three good habits which will generally ensure that your code runs fast. If you learn nothing else from this list of great advice from Grant, just keep in mind that you should 'write for the optimizer'.
Read more...
By
Additional Articles
2012/08/29
|
Source:
SimpleTalk
|
Category:
t-sql
Rating:
(not yet rated)
Rate this
|
Briefcase
|
7,168 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...
By
Gregory Larsen
2012/08/22
|
Category:
stairway series
Rating:
|
Discuss
|
Briefcase
|
9,638 reads
Hierarchies in SQL, Part II, the Sequel
In a followup to his first article on Hierarchies, Gus Gwynn takes a look at the performance of a few different methods of querying a hierarchy. Learn how the HierarchyID stacks up.
Read more...
By
GSquared
2012/08/21
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
6,997 reads
<< Previous 20
Items 41 to 60 of 1064
Next 20 >>
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.