Ms Sql Server Cheat Sheet Pdf
Select afc case number as case number count afc case number as ctotal aetc event entry id aee event entry desc as event description aee event entry typ id as event type.
Ms sql server cheat sheet pdf. Create a temporary view when before invoke before the event occurs after invoke after the event occurs event insert invoke for insert update invoke for update delete invoke for delete trigger type for. Dba cheat sheet sqlservermama page 1 server info hardware info database info recovery model backup backup device restore sql agent jobs training info. Download the sql cheat sheet print it out and stick to your desk. To get in depth knowledge check out our interactive live online sql developer sql dba training program here that comes with 24 7 support to guide you throughout your learning period.
A cheat sheet for microsoft sql server. In one place you can get a quick answer to a number of different questions that frequently arise during an sql development effort. Microsoft sql server mssql10 mssqlserver mssql data movies mdf move movies log to e microsoft sql. Sql facts sql stands for structured query language sql is pronounced sequel sql is declarative language sql is used to access manipulate data in databases top sql dbs are ms sql server oracle db2 and mysql sql commands categories data query language dql select retrieve data from table s.
This cheat sheet consists of several helpful tables and lists containing information that comes up repeatedly when working with sql. From sql for dummies 9th edition. Chack 11 01 19 aug 18. Sp help objname n product model returns general info about the object select serverproperty productlevel current value is sp1 select serverproperty edition standard edition 64 bit select version microsoft sql server 2008 r2 sp1 10 50.
This 3 page sql cheat sheet provides you with the most commonly used sql statements. View table usage tables referenced by views exec sys. Dateparts year quarter month day of year day week hour minute second millisecond yy yyyy qq q mm m dy y dd d wk ww hh mi n ss s ms create a stored procedure create procedure name variable as datatype value as comments. With this we come to an end of sql commands cheat sheet.
Declare and set varibales declare mojo int set mojo 1 select mojo column from table where id 1 if else if else statement if mojo 1 begin print mojo is.