How to convert Varbinary(10) to a SSIS variable

  • After googling substantially before hand I stumbled across a blog linked to a codeplex sample. Trawling thorough that I got to

    EXECUTE SQL TAsk contains:

    declare

    @startLSN binary(10),

    @startLSN_str nvarchar(42)

    select @startLSN = sys.fn_cdc_get_max_lsn()

    select @startLSN_str = upper(sys.fn_varbintohexstr(@startLSN))

    select @startLSN_str as PkgLSNEnd

    This then returns data to a string that I can put in a package String variable.

    They dont make this easy 🙂

  • Awesome, just what I was looking for. 🙂

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

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