|
alter procedure usp_comput_charge @revise_no as tinyint,@revise_cost as decimal(6,3) output
as
begin
declare @qry varchar(1000)
set @qry = N' select @revise_cost = revise_result_cost from ' + db_name() + N'.dbo.charge where revise_no=@revise_no'
exec sp_executesql @stmt =@qry,
@params = N'@revise_no tinyint,@revise_cost decimal(6,3) output',
@revise_no = @revise_no,@revise_cost=@revise_cost
-------------這就是,且通過-----------------------
但錯誤如下。Server: Msg 214, Level 16, State 2, Procedure sp_executesql, Line 7
Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
這是什麼原因,高位誰幫我看看。
end |
|