Posts Tagged by T-SQL
Clustered vs. Non-clustered indexes in SQL Server
| October 14, 2010 | Posted by Matt under SQL |
In this article I will make attempt to outline differences between clustered and non-clustered indexes in SQL Server. Be fully aware that it is not going to be comprehensive explanation, but rather brief overview highlighting purpose of both types of indexes. Indexes Indexes are one of the most important part of database optimization, especially for large…
How to refer to previous row in SQL 2005
| September 22, 2010 | Posted by Matt under SQL |
In this post I will describe simple mechanism allowing to refer back to previous row in SQL Server 2005/2008 database table. For the purpose of this article let’s create a table dbo.AgentLog: create table dbo.AgentLog ( AgentID int ,LogInTime datetime ,LogOutTime datetime ) go insert dbo.AgentLog select 1, ’2010-09-08 09:40:00.000′, ’2010-09-08 10:14:00.000′ union all select…
How to drop all schema objects in MS SQL 2005
| August 10, 2010 | Posted by Matt under SQL |
I needed to test my SQL implementation script that was a part of big SQL Server Data Warehouse release. For anybody who have ever done large SQL implementation fundamental question is always “Have I scripted everything that is needed?”. So how to check if your implementation script contains all objects you require? Here is a few steps that helped me: Collate…
I am IT professional with over 10 years of experience in computer programming and web development, specializing in Microsoft technologies.



Recent Comments