Skip to content

Instantly share code, notes, and snippets.

@kurtisdunn
Last active November 28, 2018 04:28
Show Gist options
  • Save kurtisdunn/8884eacb10a10e4ebf9eed578145d833 to your computer and use it in GitHub Desktop.
Save kurtisdunn/8884eacb10a10e4ebf9eed578145d833 to your computer and use it in GitHub Desktop.
SQLServer 2016.

SQLServer 2016

A few CRUD operations and SQL statements for SQL Server 2016.

#Drop DB

USE master ;  
GO  
DROP DATABASE MoviesDB ;  
GO  

# Create a new table and increment the ID.

CREATE TABLE Persons (
    Id int not null identity(1, 1) primary key,
    LastName varchar(255) NOT NULL,
    FirstName varchar(255),
    Age int
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment