Skip to content

Instantly share code, notes, and snippets.

@jinan-kordab
Created May 28, 2018 00:45
Show Gist options
  • Save jinan-kordab/c04bba26815e4e12b481c9dab312961a to your computer and use it in GitHub Desktop.
Save jinan-kordab/c04bba26815e4e12b481c9dab312961a to your computer and use it in GitHub Desktop.
Foreign Key Table for Fast Read and Insert Application
USE [VERYFASTREADINSERT]
GO
/****** Object: Table [dbo].[LRT3FK] Script Date: 2018-04-19 20:41:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[LRT3FK](
[PKID] [smallint] NOT NULL,
[COLONE] [varchar](100) NULL,
[COLTWO] [char](10) NULL,
[COLTHREE] [char](50) NULL,
[COLFOUR] [smallint] NULL,
CONSTRAINT [PK_PKID] PRIMARY KEY NONCLUSTERED
(
[PKID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LRT3FK] ADD DEFAULT ((1)) FOR [COLFOUR]
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment