Skip to content

Instantly share code, notes, and snippets.

@CodingTricksHub
Created July 23, 2017 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodingTricksHub/2803a17a7e40ac38526cdce494c7b861 to your computer and use it in GitHub Desktop.
Save CodingTricksHub/2803a17a7e40ac38526cdce494c7b861 to your computer and use it in GitHub Desktop.
CREATE DATABASE [PhoneBook]
GO
USE [PhoneBook]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Directory](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](100) NOT NULL,
[Phone_Number] [varchar](100) NOT NULL,
CONSTRAINT [PK_Directory] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
Insert into Directory values ('Taha Hussain','1234-567890')
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment