if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SP]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[SP]
GO

CREATE TABLE [dbo].[SP] (
	[Id] [int] IDENTITY (1, 1) NOT NULL ,
	[ComeTime] [datetime] NULL ,
	[PageDomain] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PageUrl] [nvarchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[ip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserAgent] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[SP] ADD 
	CONSTRAINT [PK_SP] PRIMARY KEY  CLUSTERED 
	(
		[Id]
	)  ON [PRIMARY] 
GO

