• I see the possible cause...

    I appear to have forgotten to shift the variable into it's own statement (i.e. SET @CustAccount = '50854258878') to cater for SQL2005 (which I no longer have installed on my machine)

    If you adjust the script in this vein, the result will be successful....

    However, that despite, the question relates to how parameterisation and placeholders work

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”