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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Service Unable to start while system Reboots

Service Unable to start while system Reboots

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpquestion
4 Posts 4 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 Offline
    M Offline
    mpk1979
    wrote on last edited by
    #1

    Hi All, we have developed a service which will be using ODBC Database connectiviy for fetching the data from database.when the system has restarted the service has to be started automatically...but it doesn't...it is unable to start because it is unable to find the ODBC connectivity...but once the system is started,when user starts it, it will be started....is that when the system is restarted and when it is starting the services till that time ODBC drivers are not installed?...can any one help me out regarding this Mpk1979

    P K 2 Replies Last reply
    0
    • M mpk1979

      Hi All, we have developed a service which will be using ODBC Database connectiviy for fetching the data from database.when the system has restarted the service has to be started automatically...but it doesn't...it is unable to start because it is unable to find the ODBC connectivity...but once the system is started,when user starts it, it will be started....is that when the system is restarted and when it is starting the services till that time ODBC drivers are not installed?...can any one help me out regarding this Mpk1979

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      You can set your service, depenendent on other service, that you feel need to run, for your service to start succesfully. I dont know about database services, but you can identify by looking services explorer. Once, set your service depend on other service, It will wait to start that service and then initiates its start process.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      1 Reply Last reply
      0
      • M mpk1979

        Hi All, we have developed a service which will be using ODBC Database connectiviy for fetching the data from database.when the system has restarted the service has to be started automatically...but it doesn't...it is unable to start because it is unable to find the ODBC connectivity...but once the system is started,when user starts it, it will be started....is that when the system is restarted and when it is starting the services till that time ODBC drivers are not installed?...can any one help me out regarding this Mpk1979

        K Offline
        K Offline
        kakan
        wrote on last edited by
        #3

        Just a thought, is your service running under Local Account? In that case, you won't be able to connect over the network (since noone has logged on). And you wan't be able to connect to the DB (over the network). Could this be the cause of your problem?

        Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

        G 1 Reply Last reply
        0
        • K kakan

          Just a thought, is your service running under Local Account? In that case, you won't be able to connect over the network (since noone has logged on). And you wan't be able to connect to the DB (over the network). Could this be the cause of your problem?

          Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

          G Offline
          G Offline
          Galatei
          wrote on last edited by
          #4

          Hi, It shouldn't be the case, because Local account is not the one which is used to log in to the database. I'm not quite certain, but MSDTC is probably what you're looking for. If you add it as dependency for your service, it should be working properly. Regards

          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