Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: Stored procedure trouble with sp_executesql

    I've finally got it figured out. Some code I inherited wasn't defining the commandtype properly. I never would have figured this out without the hints I got here, thanks to...

  • RE: Stored procedure trouble with sp_executesql

    sam (9/26/2007)


    I think this should work

    exec sp_executesql N'exec sp_UpdateProcessedTrades @vcDeptName, @buySellCoverShortFlag, @customerAccountCounterparty, @shadowAccount, @tradeID',

    N'@vcDeptName varchar(5),

    @buySellCoverShortFlag varchar(1),

    @customerAccountCounterparty varchar(6),

    @shadowAccount varchar(4),

    @tradeID bigint',

    @vcDeptName = 'IF-PM',

    @buySellCoverShortFlag = 'S',...

  • RE: Stored procedure trouble with sp_executesql

    I'm not sure I see what you mean. Are you saying I should be doing this?:

    exec sp_executesql N'p_UpdateProcessedTrades',

    N'@vcDeptName varchar(5),

    @buySellCoverShortFlag varchar(1),

    @customerAccountCounterparty varchar(6),

    @shadowAccount varchar(4),

    @tradeID bigint',

    @vcDeptName =...

Viewing 3 posts - 1 through 3 (of 3 total)