Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: how to do a Common Task with stored procedure

    Try this

    Declare @Repids varchar(50)

    Set @Repids = '2,8,9,12'

    Set @Repids = ',' + @Repids + ','

    Select *

    From sales

    join salesreps

    on sales.repid = salesreps.repid

    where CharIndex( ',' + cast( salesrep.repid as varchar(10))...

Viewing post 1 (of 1 total)