Unanswered: power shell script or windows batch file for sql server
Could someone please provide me the powershell script for the below query.
i have two text files,
one file contains the list of SQL server's and another file have few sql queries.
i am looking for a powershell script or windows batch file that pick up the server name from first file and run the sql commands which is in 2nd text file and keep the output in seperate text file.