SQL Server Code,Tips and Tricks, Performance Tuning

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

Monday, October 31, 2005

SQL Server/Math Puzzle

›
Use the numbers 3,4,5,6 and the operators +, -, / and * to get the number 28 You can use each number only one time and also each operator on...
3 comments:

Percentage Of NULLS And Values In A SQL Server Table

›
Sometimes you want to know what the percentage is of null values in a table for a field Or you might want to know what the percentage of all...
Sunday, October 30, 2005

Microsoft SQL Server Developer Edition 2005 CD/DVD For Sale On Amazon

›
For all of you people who don't have a MSDN subscription, Amazon is selling the developer edition of SQL Server 2005 for $59.99 with fre...
Thursday, October 27, 2005

SQL Server 2005 and Visual Studio 2005 are released!!!

›
SQL Server 2005 and Visual Studio 2005 are available for download at the MSDN site For people who have a subscription go here http://www.msd...

SQL Server 2005 Certification Links

›
Below are the links for the SQL Server Certification exams Microsoft Certified Technology Specialist: SQL Server 2005 Microsoft Certified IT...

My Top 3 SQL Server Books

›
This is my top 3 SQL server books. They are not in any order. I use all 3 of them frequently The Guru's Guide to Transact-SQL by Ken He...
Monday, October 24, 2005

SQL Server 2005 Books On Line on MSDN

›
For those of you who don't want to download the books on line for SQL Server 2005 but would like to see it online here is the link ( htt...
Friday, October 21, 2005

Some Undocumented DBCC Commands

›
DBCC MEMORYSTATUS This DBCC command provides detailed info about SQL Server memory usage DBCC TRACEON (3604) DBCC Resource DBCC TRACEOFF (...
Thursday, October 20, 2005

Find Out How Many Occurrences Of A Substring Are In A String

›
If you want to know how many occurrences of a substring you have in a string play around with the code below. The trick here is to take the ...
Monday, October 17, 2005

Do Not Drop And Create Indexes On Your Tables

›
When you do this the nonclustered indexes are dropped and recreated twice, once when you drop the clustered index and then again when you cr...
Saturday, October 15, 2005

Which Service Pack Is Installed On My SQL Server

›
To get the answer to this question run the code below SELECT SERVERPROPERTY ( 'ProductVersion' ) AS SqlServerVersion, ...
Wednesday, October 12, 2005

List All The Indexes In My Database

›
The query below will list all the indexes on all user tables in the database SELECT OBJECT_NAME ( si.id ) AS TableName , ...
Monday, October 10, 2005

Concatenate Data Into One Comma Delimited String

›
To concatenate data from several rows you can use the code below I have declared the variable as varchar 1000, adjust the size if you think...
Friday, October 07, 2005

Find Out Server Roles For a SQL Server Login

›
This is a quick way to find out what roles a user has on the SQL Server Just change the value of @chvLoginName to the login you want DECLARE...
1 comment:
Thursday, October 06, 2005

How to find all the tables and views in a database

›
Use the code below USE PUBS GO --Get All Tables SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' GO --Get...
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:
‹
›
Home
View web version
Powered by Blogger.