Iam designing a powershell script that can execute some sql scripts that is placed inside a folder.Actually this must be done remotely. I have an xml file having all the details needed. Powershell looks in this file for the server name and other such details. Can anyone help me on this:
1) I want to connect to the SQL server remotely
2) Connect to a specific instance and connect to the specific db.
3) Retrieve all schemas associated with that db and execute the script.
Also,since I have no SQL Server installed on my server(from where I try to connect remotely) I dont have SMO dlls.So, cant use that method for connection. Any help would be really appreciated..
Thanks...