Automating SQL Commands

PhaZe

Platinum Member
Dec 13, 1999
2,880
0
76
Hello all,

I have a .sql file that has a lot of update commands that basically updates my database on a daily basis.


I was wondering if anyone knew how to automate this task. I tried using task scheduler in Vista but it only opens sql server management studio.

I usually open the .sql file in the management studio and have to connect using my log info, and then I click execute on the toolbar, and it runs my sql instructions.

Any ideas?
 

PhaZe

Platinum Member
Dec 13, 1999
2,880
0
76
I just found that article as well but when I'm in the Object explorer I see my databses, but I don't have "SQL Server Agent".

I wonder if I am missing something from the installation disk.
 

PhaZe

Platinum Member
Dec 13, 1999
2,880
0
76
It's Sql server 2005 Developer.

I just put the disc in and tried to install it with all the options and it said I already have those features installed.

hmm
 

clamum

Lifer
Feb 13, 2003
26,256
406
126
Yup, make sure you have the SQL Agent installed (you don't even have to have the service running since you can start it within Management Studio) and create a scheduled job. Works like a charm.