Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Sql Server connectivity and script execution using Powershell

$
0
0

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...


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>