Help with SQL Backup Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phirestorm@gmail.com

    Help with SQL Backup Problem

    Hopefully someone can help me with an issue i am having. First off
    let me say that i have little to no experience with MS SQL or SQL in
    general. We have a Windows 2003 server running MSSQL (i believe it is
    SQL 2000). The person who took care of this has left the company so
    it has fallen into my lap. In an effort to clear up disk space I
    looked into the folder where our backups are supposed to be backing up
    to and noticed that backups have not been running since February 23 of
    this year (i did not get the warm fuzzy feelings when i saw this).

    I tried to run a backup but got a failure almost instaneously:
    Microsoft (R) SQLMaint Utility (Unicode), Version Logged on to SQL
    Server 'AXDB' as 'COPANSYS\sqlag ent' (trusted)
    Starting maintenance plan 'DB Maintenance for Invent DB' on 5/21/2008
    11:26:00 AM
    Could not create a sub directory for database CPN_AX30_SP3_IN VENT. The
    parent directory will be used instead.[1] Database
    CPN_AX30_SP3_IN VENT: Database Backup...
    Destination: [\\titan\axapta
    \CPN_AX30_SP3_I NVENT_db_200805 211126.BAK]
    [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 3201: [Microsoft]
    [ODBC SQL Server Driver][SQL Server]Cannot open backup device '\\titan
    \axapta\CPN_AX3 0_SP3_INVENT_db _200805211126.B AK'. Device error or
    device off-line. See the SQL Server error log for more details.
    [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is
    terminating abnormally.
    End of maintenance plan 'DB Maintenance for Invent DB' on 5/21/2008
    11:26:01 AM
    SQLMAINT.EXE Process Exit Code: 1 (Failed)

    The backup desination is another server that the sqlagent account has
    full control of so i'm not really sure what else to look at. I did
    try to run a backup to a local location and the backup worked. Any
    help is greatly appreciated.

  • Erland Sommarskog

    #2
    Re: Help with SQL Backup Problem

    (phirestorm@gma il.com) writes:
    I tried to run a backup but got a failure almost instaneously:
    Microsoft (R) SQLMaint Utility (Unicode), Version Logged on to SQL
    Server 'AXDB' as 'COPANSYS\sqlag ent' (trusted)
    Starting maintenance plan 'DB Maintenance for Invent DB' on 5/21/2008
    11:26:00 AM
    Could not create a sub directory for database CPN_AX30_SP3_IN VENT. The
    parent directory will be used instead.[1] Database
    CPN_AX30_SP3_IN VENT: Database Backup...
    Destination: [\\titan\axapta
    \CPN_AX30_SP3_I NVENT_db_200805 211126.BAK]
    [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 3201: [Microsoft]
    [ODBC SQL Server Driver][SQL Server]Cannot open backup device '\\titan
    \axapta\CPN_AX3 0_SP3_INVENT_db _200805211126.B AK'. Device error or
    device off-line. See the SQL Server error log for more details.
    [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is
    terminating abnormally.
    End of maintenance plan 'DB Maintenance for Invent DB' on 5/21/2008
    11:26:01 AM
    SQLMAINT.EXE Process Exit Code: 1 (Failed)
    >
    The backup desination is another server that the sqlagent account has
    full control of so i'm not really sure what else to look at. I did
    try to run a backup to a local location and the backup worked. Any
    help is greatly appreciated.
    But does the service account for SQL Server have access to this
    destination?

    And that fact that the maintenance job was not able to create
    subdirectory that there may be issues with the service account for
    SQL Agent as well.



    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    • phirestorm@gmail.com

      #3
      Re: Help with SQL Backup Problem

      On May 21, 3:28 pm, Erland Sommarskog <esq...@sommars kog.sewrote:
       (phirest...@gma il.com) writes:
      I tried to run a backup but got a failure almost instaneously:
      Microsoft (R) SQLMaint Utility (Unicode), Version Logged on to SQL
      Server 'AXDB' as 'COPANSYS\sqlag ent' (trusted)
      Starting maintenance plan 'DB Maintenance for Invent DB' on 5/21/2008
      11:26:00 AM
      Could not create a sub directory for database CPN_AX30_SP3_IN VENT. The
      parent directory will be used instead.[1] Database
      CPN_AX30_SP3_IN VENT: Database Backup...
          Destination: [\\titan\axapta
      \CPN_AX30_SP3_I NVENT_db_200805 211126.BAK]
      [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 3201: [Microsoft]
      [ODBC SQL Server Driver][SQL Server]Cannot open backup device '\\titan
      \axapta\CPN_AX3 0_SP3_INVENT_db _200805211126.B AK'. Device error or
      device off-line. See the SQL Server error log for more details.
      [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is
      terminating abnormally.
      End of maintenance plan 'DB Maintenance for Invent DB' on 5/21/2008
      11:26:01 AM
      SQLMAINT.EXE Process Exit Code: 1 (Failed)
      >
      The backup desination is another server that the sqlagent account has
      full control of so i'm not really sure what else to look at.  I did
      try to run a backup to a local location and the backup worked.  Any
      help is greatly appreciated.
      >
      But does the service account for SQL Server have access to this
      destination?
      >
      And that fact that the maintenance job was not able to create
      subdirectory that there may be issues with the service account for
      SQL Agent as well.
      >
      --
      Erland Sommarskog, SQL Server MVP, esq...@sommarsk og.se
      >
      Books Online for SQL Server 2005 athttp://www.microsoft.c om/technet/prodtechnol/sql/2005/downloads/books...
      Books Online for SQL Server 2000 athttp://www.microsoft.c om/sql/prodinfo/previousversion s/books.mspx- Hide quoted text -
      >
      - Show quoted text -
      You'll have to bear with my ignorance on this, but, how can add a
      service account to a folders security permisions?

      Comment

      • Erland Sommarskog

        #4
        Re: Help with SQL Backup Problem

        (phirestorm@gma il.com) writes:
        You'll have to bear with my ignorance on this, but, how can add a
        service account to a folders security permisions?
        Like you would add any other account. Right-click the folder, select
        Properties, go to the security tab. Use the Add button.

        To determine the Service accont, right-click My Computer select Manage,
        find the Services entry. There find the service for SQL Server and SQL
        Agent. Right-click these, Properties. You find the service account on
        the second tab.
        --
        Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

        Books Online for SQL Server 2005 at

        Books Online for SQL Server 2000 at

        Comment

        • phirestorm@gmail.com

          #5
          Re: Help with SQL Backup Problem

          On May 22, 3:44 pm, Erland Sommarskog <esq...@sommars kog.sewrote:
           (phirest...@gma il.com) writes:
          You'll have to bear with my ignorance on this, but, how can add a
          service account to a folders security permisions?
          >
          Like you would add any other account. Right-click the folder, select
          Properties, go to the security tab. Use the Add button.
          >
          To determine the Service accont, right-click My Computer select Manage,
          find the Services entry. There find the service for SQL Server and SQL
          Agent. Right-click these, Properties. You find the service account on
          the second tab.
          --
          Erland Sommarskog, SQL Server MVP, esq...@sommarsk og.se
          >
          Books Online for SQL Server 2005 athttp://www.microsoft.c om/technet/prodtechnol/sql/2005/downloads/books...
          Books Online for SQL Server 2000 athttp://www.microsoft.c om/sql/prodinfo/previousversion s/books.mspx
          Thanks for the help. It seems as if someone had removed the share
          permisions. Once i added the accound back into the share permisions
          we were successful on the backup. Thanks for helping point me in the
          right direction.

          Comment

          Working...