Running a SQLCMD script from SSIS Execute Process Task with variables

前端 未结 1 1623
终归单人心
终归单人心 2021-01-28 19:11

I have an .sql file with scripts that include SQLCMD elements.

I need to have it run from an SSIS package.

I was unable to execute it from an \"Execute S

相关标签:
1条回答
  • 2021-01-28 20:00

    I believe you need to create an expression named Arguments with the value:

    "-S server -U user -P pass -i " + @[User::FileNameView]
    

    You may need to do some type casting if @[User::FileNameView] isn't a string.

    0 讨论(0)
提交回复
热议问题