Running SqlCmd utility using C# this way : // Calls the sqlcmd ProcessStartInfo info = new ProcessStartInfo( “sqlcmd”, @” -S VDSS218 -i D:RaviBlank_Database_Creation_script.sql”)…
Tag: sqlcmd
How do I use a variable in an SQL script passed in from a powershell script
I’m new to Powershell and getting stuck with some of the syntax. I have a powershell script that calls a SQL script with a variable I want to access inside the script. in my SQL query I want to be able to access the $powerShellVar variable like this However, when I do that, I get this error What am I