invoke-sqlcmd : The term 'invoke-sqlcmd' is not recognized RRS feed

  • Question

  • Hello everyone,

    I would like to set initial Values in my Database before deploying it.

    I do it with PowerShell. The PowerShell command on its own works. But in VS it sais:

    "invoke-sqlcmd : The term 'invoke-sqlcmd' is not recognized"

    I tried adding these two commands before in my script, but still doesn't work.

    Add-PSSnapin SqlServerCmdletSnapin100
    Add-PSSnapin SqlServerProviderSnapin100

    I would appreciate any kind of help greatly, kind Blessings

    Andreas Bolliger

    Monday, June 17, 2013 10:48 AM