Posted by billmiami2 on 07/19/06 09:03
I just ran the script generator on a single table using the SQL 2000
option and here's what it produced:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[IF_Parameters]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[IF_Parameters](
[Param_Name] [varchar](50) NOT NULL,
[Param_Value] [real] NULL,
CONSTRAINT [PK_IF_Parameters] PRIMARY KEY CLUSTERED
(
[Param_Name] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
Here's the script using the SQL 2005 option
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[IF_Parameters]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[IF_Parameters](
[Param_Name] [varchar](50) NOT NULL,
[Param_Value] [real] NULL,
CONSTRAINT [PK_IF_Parameters] PRIMARY KEY CLUSTERED
(
[Param_Name] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
It looks the same to me.
Bill
[Back to original message]
|