Viewing post 1 (of 2 total)
You can use this script too.
declare @vcCmd nvarchar(200), @inResult int
set @vcCmd = N'select @inOutPar = Count(*) from master.dbo.sysdatabases'
execute sp_executesql @vcCmd, N'@inOutPar int output', @inResult output
select @inResult
Moy
November 1, 2005 at 12:53 pm
#601663