Home | Index | Dotnet4all Snippets | Submit resources
About | Mail us 
A cheat sheet for SQL Server developers (05 April 2008)


 
I have created a cheat sheet (factsheet) for SQL Server (6.5, 7.0, 2000 and 2005) developers that fits on one A4 (printed on both sides) so that you can laminate it and keep it on your desk. You have to print it with a color-printer to be able to use all information!

An overview of the contents of this factsheet:

- Some examples of connectionstrings
- The syntaxis for SELECT, UPDATE, DELETE and INSERT queries
- The syntaxis for CREATE TABLE and ALTER TABLE
- CREATING, ALTERING and DELETING Stored Procedures, Indexes, Views, Triggers and Functions
- A legend of the 'Execution Plan Icons', including some optimizing tips and tricks.
- All datatypes, including memory-usage and indication for best performing types
- All string functions
- All system functions
- All date and time functions
- A list of all dateparts
- The cursor functions
- The mathematical functions

If you have some feedback, please send it to me so that I can improve this factsheet.

Labels: , , ,


Posted by Xander Zelders



10 Comments:

Blogger filip71 said...

Thanks a lot. Good job. Use it very often :o)

November 18, 2008 10:43 AM  
Anonymous Anonymous said...

Under creating indexes, you should add that columns used as foreign keys should be indexed (they are sometimes not the primary key on foreign table).

January 31, 2009 6:48 PM  
Blogger sqlwebpedia said...

You should add that columns used in foreign keys should be indexed also. This is often forgotten and can lead to some really bad query performance.

January 31, 2009 6:50 PM  
Blogger Luciano said...

I am new to DB development... but this page seems to be a tool that will help me a lot

Many, Many Thanks!!!
L Piccini

February 8, 2009 5:27 PM  
Blogger Jer said...

hi.. i'm getting the page cannot be found when i'm trying to open the pdf.. thanks..

March 10, 2009 8:17 AM  
Anonymous Avinash said...

The download link is not working, plz check that

April 16, 2009 7:09 AM  
Blogger BobF said...

download link still not working :-<

May 15, 2009 11:54 AM  
Anonymous Jonas Karlsson said...

The link should be updated to point to http://www.dotnet4all.com/snippets/factsheet%20SQL%20Server.pdf

June 10, 2009 10:23 AM  
Blogger killer purple gravy said...

Great sheet, just one thing that I believe is a typo - under Dateparts on the first page, for weekday you have "dd" as the abbreviation, when it is really "dw" - or see http://www.java2s.com/Code/SQLServer/Date-Timezone/DatepartsandAbbreviations.htm

June 17, 2009 12:49 AM  
Anonymous Anonymous said...

Couple notes on system functions--
CURRENT_USER: Returns the database user name for the current connection.
SYSTEM_USER: Returns the server login name for the current connection.
SCOPE_IDENTITY: Returns the last-inserted identity value in the current scope. Recommended over @@IDENTITY.

July 30, 2009 3:39 PM  

Post a Comment

<< Home

 
Previous Posts
    - How to replace certain word with a hyperlink using...
    - How to Highlight a specific word in HTML content (...
    - how to extract SRC from IMG elements in HTML code
    - How to extract URL and Anchor from HTML content
    - Grab the content of a (GZIP) webpage using C#
    - How to extract the host name from an URL (C#)
    - How to Send an email using SMTP (C#)
    - How to remove HTML-tags from web content (C#)
    - How to convert DateTime to SQL valid string



Disclaimer & Terms of Use | DotNet4All.Com concept & © 2004 - 2007 by Zelders² - Holland