我正在尝试在创建表时运行脚本。我收到此错误消息:
CONDITIONAL 失败,因为以下 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