我正在尝试在创建表时运行脚本。我收到此错误消息:
条件失败,因为以下SET选项不正确 设置:'ANSI_PADDING'。验证SET选项是否正确使用 具有索引视图和/或计算列和/或过滤的索引 索引和/或查询通知和/或XML数据类型方法和/或 空间索引操作。
创建表脚本如下所示。任何想法和建议!
/****** Object: Table [dbo].[Account] Script Date: 04/24/2012 10:06:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Account](
[accountID] [int] IDENTITY(1,1) NOT NULL,
[crmAccountID] [uniqueidentifier] NOT NULL,
[crmOwningUserID] [uniqueidentifier] NOT NULL,
[crmBusinessUnitID] [uniqueidentifier] NOT NULL,
[name] [nvarchar](160) NULL,
[accountNumber] [nvarchar](160) NULL,
[stateCode] [int] NOT NULL,
[topClientOfFirm] [nvarchar](100) NULL,
[topClientOfCMG] [nvarchar](100) NULL,
[balanceOfTrade] [nvarchar](100) NULL,
[websiteURL] [nvarchar](200) NULL,
[clientLevel] [nvarchar](30) NULL,
[industryCode] [nvarchar](50) NULL,
[city] [nvarchar](100) NULL,
[state] [nvarchar](100) NULL,
[country] [nvarchar](100) NULL,
[deleted] [bit] NOT NULL,
[numProperties] [int] NULL,
[numEquityNeeds] [int] NULL,
[numDebtNeeds] [int] NULL,
[numCompanyLocations] [int] NULL,
[numDebtPositions] [int] NULL,
[primaryContactID] [int] NULL,
[parentAccountID] [int] NULL,
[tickerSymbol] [nvarchar](10) NULL,
[negativeExperiences] [smallint] NULL,
[totalSubAccounts] [smallint] NULL,
[topParentAccountID] [int] NULL,
[knownAs] [nvarchar](100) NULL,
[lenderType] [nvarchar](100) NULL,
[investorLender] [tinyint] NULL,
[primaryGeography] [bit] NULL,
[secondaryGeography] [bit] NULL,
[teriaryGeography] [bit] NULL,
CONSTRAINT [PK_Account] PRIMARY KEY CLUSTERED
(
[accountID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO