My host only provides SQL Server 2000 so I modified the setup scripts and thought I'd publish the changes as my first post on my new blog. Only two general changes where required:
-
[nvarchar](max)columns changed to [nText].
-
Table contrainsts changed - None of the WITH parameters are supported.
Here is a sample of the original script with the changed script below. I have also attached the file for others to use MSSQL2000Setup1.4.5.0.sql (25.01 kb).
Orinigal:
-
/****** Object: Table [dbo].[be_Pages] Script Date: 12/22/2007 14:15:17 ******/
-
SET ANSI_NULLS ON
-
GO
-
SET QUOTED_IDENTIFIER ON
-
GO
-
CREATE TABLE [dbo].[be_Pages](
-
[PageID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_Pages_PageID] DEFAULT (newid()),
-
[Title] [nvarchar](255) NULL,
-
[Description] [nvarchar](max) NULL,
-
[PageContent] [nvarchar](max) NULL,
-
[Keywords] [nvarchar](max) NULL,
-
[DateCreated] [datetime] NULL,
-
[DateModified] [datetime] NULL,
-
[IsPublished] [bit] NULL,
-
[IsFrontPage] [bit] NULL,
-
[Parent] [uniqueidentifier] NULL,
-
[ShowInList] [bit] NULL,
-
CONSTRAINT [PK_be_Pages] PRIMARY KEY CLUSTERED
-
(
-
[PageID] 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
Changed:
-
/****** Object: Table [dbo].[be_Pages] Script Date: 12/22/2007 14:15:17 ******/
-
SET ANSI_NULLS ON
-
GO
-
SET QUOTED_IDENTIFIER ON
-
GO
-
CREATE TABLE [dbo].[be_Pages](
-
[PageID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_Pages_PageID] DEFAULT (newid()),
-
[Title] [nvarchar](255) NULL,
-
[Description] [ntext] NULL,
-
[PageContent] [ntext] NULL,
-
[Keywords] [ntext] NULL,
-
[DateCreated] [datetime] NULL,
-
[DateModified] [datetime] NULL,
-
[IsPublished] [bit] NULL,
-
[IsFrontPage] [bit] NULL,
-
[Parent] [uniqueidentifier] NULL,
-
[ShowInList] [bit] NULL,
-
CONSTRAINT [PK_be_Pages] PRIMARY KEY CLUSTERED
-
(
-
[PageID] ASC
-
)) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
GO