Link to home
Start Free TrialLog in
Avatar of willlandymore
willlandymoreFlag for United States of America

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?
Avatar of strickdd
strickdd
Flag of United States of America image

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.
Avatar of willlandymore

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

ASKER CERTIFIED SOLUTION
Avatar of Lowfatspread
Lowfatspread
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
forget I asked... :)

I just put it in a batch file and then scheduled it and it was fine.

Thanks.