Skip to main content

Useful SQL code

Using GO, BEGIN & END

  • GO : Ends a script. Can be used to isolate one part of the script from another. Often used with CREATE TABLE
  • BEGIN / END : Usually used to begin and end stored procedures. Also necessary for IFs and loops