IF Not EXISTS(SELECT * FROM sysobjects WHERE name='ProductCompany')
BEGIN 
	CREATE TABLE [dbo].[ProductCompany](
		[Id] [UNIQUEIDENTIFIER] NOT NULL ,
		[Code] [VARCHAR](15) NOT NULL,
		[Name] [NVARCHAR](100) NOT NULL,
	 CONSTRAINT [PK_ProductCompany] PRIMARY KEY CLUSTERED 
	(
		[Id] ASC
	)
	) ON [PRIMARY] 
	ALTER TABLE [dbo].[ProductCompany] ADD  CONSTRAINT [DF_ProductCompany_Id]  DEFAULT (NEWID()) FOR [Id]
END
ELSE
  TRUNCATE TABLE dbo.ProductCompany 