willlandymore
asked on
tool for running SQL script remotely...
I haven't had any experience with this, but I have a SQL script that I need to run remotely on one of my SQL servers. How can I run this on the remote server? Is there a tool or something so I can save the file as an .sql file and then run it from my machine?
You can use SQL server management studio, you just have you make sure that your SQL server allows remote connections and connect to that server from your management studio.
ASKER
I can't really pop open the studio and then paste in the query and then run it manually, it would have to be automatic. Could I schedule this from within Management Studio like you can with backups, etc. and have it run every day if I save the query as a .sql file?
You can create a SQL job to run a script on a schedule.
Greg
Greg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that looks like what I'm looking for as far as specifying the file and output file, but how can I schedule that one to run at certain times?
ASKER
forget I asked... :)
I just put it in a batch file and then scheduled it and it was fine.
Thanks.
I just put it in a batch file and then scheduled it and it was fine.
Thanks.