Forum Replies Created

Viewing post 1 (of 2 total)

  • RE: Problems with OpenQuery and variables

    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

Viewing post 1 (of 2 total)