Home Forums Programming Powershell INSERT statements containing regex as a string being read as regex RE: INSERT statements containing regex as a string being read as regex

  • ... and the first ID10T award of spring goes to... me.

    I had already resolved the problems I was having getting this to work via powershell; the real issue I had was when running a sql script via sqlcmd. Via sqlcmd, this combination of characters doesn't work so well.

    I have a process that creates database build scripts based on repos of database objects in source control (including data) and those scripts are used in processes that generate upgrade scripts. Occasionally I'll need to build another database from the repos manually and I take the created script but have to run it via sqlcmd because the size exceeds what can be used by SSMS.

    I'll cut the story off here and thank opc.three for making me realize how off track I was.