2010-10-12 81 views

回答

0

取決於你用它做什麼。您不需要爲輸出參數指定默認值 - 儘管您的客戶端應用程序可能認爲它需要提供值。這將工作:

create proc DoSomethingWithRows 
    @TotalRows int = null output 
as 

set @TotalRows = 32 /*You might want to do something more imaginative than this*/