2010-08-28 68 views
1

您是否需要特定版本的Sql Server 2008才能具有TVP(表值參數)或表類型?用戶定義表類型不可用

我沒有種下的文件夾中,我得到一個錯誤試圖創建一個時:

CREATE Type EntityTable AS TABLE 
(EntityId int 
,EntityName varchar(max) 
,EntityFriendlyName varchar(max) 
,IconPath varchar(max) 
,EntityDescription varchar(max) 
,EntityToolTip varchar(max) 
,TableName varchar(max) 
,EntityrFriendlyNamePlural varchar(max) 
,AttachNotes bit 
,AttachDocuments bit 
,AllowDuplicates bit) 
GO 

錯誤:

Msg 156, Level 15, State 1, Line 1 
Incorrect syntax near the keyword 'AS'. 

回答