Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Windows Server 2000 - Database Server - start SQL jobs

Windows Server 2000 - Database Server - start SQL jobs

Scheduled Pinned Locked Moved System Admin
databasesysadminwindows-adminhelpquestion
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mschauder

    Hey guys, If we restart the server in the night, there is nobody to login. Connect to the database is no problem. But we have to start several jobs on the server. is there a property to start SQL jobs from a server without login? :~

    J Offline
    J Offline
    Jorgen Andersson
    wrote on last edited by
    #2

    Have you tried the "Task Scheduler". You find it under Accessories/System Tools. If you prefer the CLI, you can try the AT command.

    "When did ignorance become a point of view" - Dilbert

    M 1 Reply Last reply
    0
    • J Jorgen Andersson

      Have you tried the "Task Scheduler". You find it under Accessories/System Tools. If you prefer the CLI, you can try the AT command.

      "When did ignorance become a point of view" - Dilbert

      M Offline
      M Offline
      Mschauder
      wrote on last edited by
      #3

      Yes sure, but they wouldn't start or rather, they wouldn't be used cause the jobs run on the SQL Server...

      modified on Wednesday, March 24, 2010 6:10 AM

      J 1 Reply Last reply
      0
      • M Mschauder

        Yes sure, but they wouldn't start or rather, they wouldn't be used cause the jobs run on the SQL Server...

        modified on Wednesday, March 24, 2010 6:10 AM

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #4

        How about this[^] then?

        "When did ignorance become a point of view" - Dilbert

        M 1 Reply Last reply
        0
        • J Jorgen Andersson

          How about this[^] then?

          "When did ignorance become a point of view" - Dilbert

          M Offline
          M Offline
          Mschauder
          wrote on last edited by
          #5

          Yes sure, we already use this :-D If no user logged in the jobs wouldn't start... Think so... start your pc and you would not login, but updates run in the background. We have SQL jobs, which run at 7:00 AM but the server was restartet at 6:00 AM an nobody is there to login to the server with the adminuser. Connect to the servers database already works. :)

          D 1 Reply Last reply
          0
          • M Mschauder

            Yes sure, we already use this :-D If no user logged in the jobs wouldn't start... Think so... start your pc and you would not login, but updates run in the background. We have SQL jobs, which run at 7:00 AM but the server was restartet at 6:00 AM an nobody is there to login to the server with the adminuser. Connect to the servers database already works. :)

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #6

            If the Scheduled Jobs are setup properly, using an account that the job knows about (username/password), noone has to login to the machine at all. The Agent service will run the job as the user that's supplied. No interactive login required on your part.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            M 1 Reply Last reply
            0
            • D Dave Kreskowiak

              If the Scheduled Jobs are setup properly, using an account that the job knows about (username/password), noone has to login to the machine at all. The Agent service will run the job as the user that's supplied. No interactive login required on your part.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              M Offline
              M Offline
              Mschauder
              wrote on last edited by
              #7

              Scheduled Jobs from the Server or SQL? the server jobs already use this...

              D 1 Reply Last reply
              0
              • M Mschauder

                Scheduled Jobs from the Server or SQL? the server jobs already use this...

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #8

                SQL Server has it's own scheduled tasks ability.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                M 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  SQL Server has it's own scheduled tasks ability.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008
                  But no longer in 2009...

                  M Offline
                  M Offline
                  Mschauder
                  wrote on last edited by
                  #9

                  X| yes I know... WE ALREADY USE IT!!! X| but where can we set the login property there? the >>SQL JOBS<< wouldn't run without a logged in user.

                  J D 2 Replies Last reply
                  0
                  • M Mschauder

                    X| yes I know... WE ALREADY USE IT!!! X| but where can we set the login property there? the >>SQL JOBS<< wouldn't run without a logged in user.

                    J Offline
                    J Offline
                    Jorgen Andersson
                    wrote on last edited by
                    #10

                    Go to "Administrative Tools / Services" Rightclick "SQL Server Agent" and select Properties. In the "General" tab, make sure the startup type is "Automatic". In the "Log On" tab you put in the correct credentials for a user with the correct permissions.

                    "When did ignorance become a point of view" - Dilbert

                    1 Reply Last reply
                    0
                    • M Mschauder

                      X| yes I know... WE ALREADY USE IT!!! X| but where can we set the login property there? the >>SQL JOBS<< wouldn't run without a logged in user.

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #11

                      Yeah, but you weren't too clear on that. SQL Server Management Studio -> SQL Server Agent -> Edit the job -> the Run As drop down. Also, under the General tab, you get to enter the creds of a user.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007, 2008
                      But no longer in 2009...

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups