Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. CREATE TABLE [DailyCounts](
  2. [LDate] [datetime] NOT NULL CONSTRAINT [DF_LDate] DEFAULT (getdate()),
  3. [SourceTable] [varchar](32) NOT NULL,
  4. [TableRowCount] [bigint] NOT NULL,
  5. CONSTRAINT [PK_DailyCounts] PRIMARY KEY CLUSTERED
  6. (
  7. [LDate] ASC
  8. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
  9. ) ON [PRIMARY]
  10.  
  11. CONSTRAINT [PK_DailyCounts] PRIMARY KEY CLUSTERED
  12. (
  13. [LDate] ASC
  14. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
  15. ) ON [PRIMARY]
  16.  
  17. CREATE TABLE DailyCounts(
  18. LDate date DEFAULT sysdate CONSTRAINT PK_DailyCounts PRIMARY KEY,
  19. SourceTable varchar2(32) NOT NULL,
  20. TableRowCount number(19) NOT NULL
  21. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement