Having trouble backing up

  • I am scratching my head on this one. I log into my sql server database as a W2K administrator and have it set up to do anything and I can't backup any databases. I am using the wizard as what the wizard does works for what I need(using enterprise manager). Something happened when my network admin rebuilt the servers and really screwed up my logins on sql server. I fixed everything else I think now I am stumped on trying to backup. Any suggestions?

    oh the error message I get is:

    Executed as user: ARLNET\Administrator. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.

    which basically says I do not have permission. very bizzare.

    Matt

  • Double click your maintenance plan --> Reporting Tab --> Check 'Write report to a text file' option to log the execution of the maintance plan job. Review the log file for more information why your backup job failure.

  • should be in your logs folder, near where your data folder is.

    Steve Jones

    sjones@sqlservercentral.com

    http://www.sqlservercentral.com/columnists/sjones

    http://www.dkranch.net

  • hmm very interesting error message:

    Microsoft (R) SQLMaint Utility (Unicode), Version [Microsoft SQL-DMO (ODBC SQLState: 28000)] Error 18456: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\SYSTEM'.

    Any ideas? I am wondering if it has anything to do with deleting Builtin/Administrators.

    Matt

  • Did you remove BUILTIN\Administrators login from SQL Server? Which account do you use to run SQL Server and Agent services?

    I believe SQL Server Agentg is running by local system account. If it is, you have to grant 'NT Authority\System' to access SQL Server with 'sa' previlege.

  • And how do I check that? All of SQL Services can start just fine, I just can not start my backups. I do not have an NT AUTHORITY\SYSTEM login.

    Matt

  • Goto service to verify which account is used to start MSSQLServer and SQLServerAgent services.

    USE master

    go

    EXEC sp_grantlogin 'NT Authority\System'

    go

    EXEC sp_addsrvrolemember 'NT Authority\System', 'sysadmin'

    go

    Edited by - Allen_Cui on 03/24/2003 07:33:46 AM

  • I fixed it for the time being. The SQL Server Agent WON'T start under local so I used admin and gave it sa priviledges.

    Matt

  • Suggest to review machine application and system logs why SQLServerAgent service was unable to start under local system account.

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply