Last active
December 21, 2015 18:59
-
-
Save danielmackay/6351133 to your computer and use it in GitHub Desktop.
Standard SQL table fields. #sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alter table XXX add [CreateID] [int] NOT NULL | |
Alter table XXX add [CreateTS] [datetime] NOT NULL constraint DefaultModifyID default getdate() | |
Alter table XXX add [ModifyID] [int] NULL | |
Alter table XXX add [ModifyTS] [datetime] NULL | |
Alter table XXX add [InactiveID] [int] NULL | |
Alter table XXX add [InactiveTS] [datetime] NULL | |
Alter table XXX add [StatusID] [int] NOT NULL constraint DefaultStatusID default 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CreateID] [int] NOT NULL default -1, | |
[CreateTS] [datetime] NOT NULL default getdate(), | |
[ModifyID] [int] NULL default -1, | |
[ModifyTS] [datetime] NULL default getdate(), | |
[InactiveID] [int] NULL, | |
[InactiveTS] [datetime] NULL, | |
[StatusID] [int] NOT NULL default 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment