SQL Server Summary

Recently I have got some free time and go over the knowledge about SQL Server.Write this acticle in order to review in the future.

1.  Join Option

Join is important option in relational database.There are many types of Join including Inner join, Outer join and Cross join.

Some important Tips:

2.  Transaction :

  • Transaction Features(ACID):Atomicity, Consistency, Isolation and Durability
  • Transaction Template
--Transaction Template
CREATE TRANSACTION [Name]
AS
BEGIN TRY
    BEGIN TRANSACTION
        --Execute Code
    COMMIT TRANSACTION
END TRY
BEGIN CATCH
    IF(@@TRANCOUNT >0)
        ROLLBACK TRANSACTION
    END IF
END CATCH

 

posted @ 2015-07-30 22:41  Blackeye  阅读(219)  评论(0编辑  收藏  举报