SQL Server Code,Tips and Tricks, Performance Tuning

A blog about SQL Server, Books, Movies and life in general

Wednesday, September 28, 2005

Split a comma delimited string fast!

›
-- Create our Pivot table ** do this only once-- populate it with 1000 rows CREATE TABLE NumberPivot (NumberID INT PRIMARY KEY ) DECLARE ...
4 comments:
Tuesday, September 27, 2005

Fast Date Ranges Without Loops In SQL Server 2000

›
The trick to create date ranges without loops is to use a pivot table. How does this work? Run the code below and you will see, only create ...
Sunday, September 25, 2005

Put Tables Into Memory

›
If you have lookup tables (or other small tables) that are frequently accessed and you don’t want to reduce I/O use the command DBCC PINTABL...
2 comments:
Friday, September 23, 2005

SQL Server MVP's

›
Here is a link to a list of all the MS SQL Server MVP's All of them have website links next to their name Now you can see who all those ...
Thursday, September 22, 2005

Query Analyzer Trick

›
In Query Analyzer you can save a lot of time by using this trick instead of typing all the column names of a table Hit F8, this will open Ob...
7 comments:
Wednesday, September 21, 2005

Date formatting in SQL Server

›
According to Joe Celko this should always happen on the client side, but in case you ever need it (for example in DTS when you have to outpu...
4 comments:
Tuesday, September 20, 2005

Average length of all rows in a table

›
Average length of all rows in a table Sometimes you want to know how much space the average row is in your table Instead of writing tedious ...
Thursday, September 15, 2005

How to return random results from SQL SERVER

›
Sometimes you want to display 4 random articles/pics/you name it on your web page and you don’t want to write a lot of code. SQL SERVER 2000...
1 comment:

@@IDENTITY returns wrong identity field

›
When using @@IDENTITY I get the wrong results I have seen this problem posted many times on newsgroups and It actually happened to a co-wor...
3 comments:
‹
Home
View web version
Powered by Blogger.