Convert common Separated number to # table

  • @reportParameter 1008,1009,1011,1014 values need to insert to #Table

    Note: @reportParameter is not returning values to db as string from report server

    Select * from

    STRING_SPLIT(1008,1009,1011,1014,',')

    Could you Please solution.

     

  • The value needs to be a string:

    STRING_SPLIT('1008,1009,1011,1014',',')

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.

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

You must be logged in to reply to this topic. Login to reply