在“Select @RowCount = 1”
行上显示错误declare @RowCount int
declare @MaxRows int
declare @CommonImportID bigint
declare @UserName3
select @RowCount = 1;
select @MaxRows = count(*) from import.commonImport;
while @RowCount <= @MaxRows
begin
EXEC [import].[spExecuteMainProcedure]
@CommonImportID = 2814,
@UserName3 = N'dTrunley'
select @CommonImportID = @CommonImportID + 1;
select @RowCount = @RowCount + 1;
end
真的很难看到我做错了什么。可能是非常基本的东西。
由于
答案 0 :(得分:4)
您没有在此处定义数据类型:
declare @UserName3
应该是这样的:
declare @UserName3 nvarchar(8)