Forum Discussion
sunny sunny
Oct 01, 2017Copper Contributor
Search and Replace in power shell
Hello, I am new to power shell and i am trying to achive below. I have file test.txt with data as shown below. i want the search for variable2 and update the value as below. select * from table...
Oct 01, 2017
Do you need to run it in powershell trough a txt file or can you run it in a script?
You could take a look at this article on how to query SQL from PowerShell:
http://irisclasson.com/2013/10/16/how-do-i-query-a-sql-server-db-using-powershell-and-how-do-i-filter-format-and-output-to-a-file-stupid-question-251-255/