使用SQL Server。我從一個SQL INSERT語句得到一個錯誤:在此上下文中不允許使用名稱「X」。有效的表達式是常量,常量表達式和變量。列名不允許使用
The name "InvalidAwps" is not permitted in this context. Valid
expressions are constants, constant expressions, and (in some contexts)
variables. Column names are not permitted.
這是插入SQL產生的錯誤:
Insert Into [PlanFinder].[ReportLinks]
(TypeOfReport, Links) Values (InvalidAwps, \\uafc.com\ReportLinks\InvalidAwps);
,這裏是表定義:
Create Table [PlanFinder].[ReportLinks]
(
[TypeOfReport] Char (11) Not Null,
[Links] Money Null,
Constraint pk_TypeOfReport Primary Key Clustered (TypeOfReport)
)
如何我解決這個問題嗎?
我正要問這個。這是一個鏈接到一個文件或什麼的? – JNK 2010-09-21 14:29:46
@JNK:有些信息可能已被刪除,因爲它不是「代碼佈局」! – gbn 2010-09-21 14:32:01
那實際上是報告的路徑。謝謝我忘記了引號。 – User7354632781 2010-09-21 14:33:02