Is it possible to generate a .sql script in the sql server 2000 format using sql server 2005
I would like to generate a script in this format using 2005
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CLSFD_AdBlocks]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[CLSFD_AdBlocks]
GO
CREATE TABLE [dbo].[CLSFD_AdBlocks] (
[BlockID] [bigint] IDENTITY (1, 1) NOT NULL ,
[MemberID] [bigint] NULL ,
[SenderEmail] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[SenderIP] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CLSFD_AdBlocks] WITH NOCHECK ADD
CONSTRAINT [PK_CLSFD_AdBlocks] PRIMARY KEY CLUSTERED
(
[BlockID]
) ON [PRIMARY]
GO
I would like to generate a script in this format using 2005
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CLSFD_AdBlocks]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[CLSFD_AdBlocks]
GO
CREATE TABLE [dbo].[CLSFD_AdBlocks] (
[BlockID] [bigint] IDENTITY (1, 1) NOT NULL ,
[MemberID] [bigint] NULL ,
[SenderEmail] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[SenderIP] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CLSFD_AdBlocks] WITH NOCHECK ADD
CONSTRAINT [PK_CLSFD_AdBlocks] PRIMARY KEY CLUSTERED
(
[BlockID]
) ON [PRIMARY]
GO