Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USE [Database]
- GO
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- SET ANSI_PADDING ON
- GO
- CREATE TABLE [dbo].[Tbl_A]
- (
- [id] [int] IDENTITY(1,1) NOT NULL,
- [Name] [varchar](255) NOT NULL,
- CONSTRAINT [PK_Tbl_A] 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] TEXTIMAGE_ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[Tbl_A_Proxy]
- (
- [id] [int] NOT NULL,
- CONSTRAINT [PK_Tbl_A_Proxy] 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
- ALTER TABLE [Database].[dbo].[Tbl_A_Proxy]
- ADD CONSTRAINT [FK_Tbl_AProxy]
- FOREIGN KEY ([id])
- REFERENCES [Database].[dbo].[Tbl_A]([id])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement