Ошибка 17058 при запуске службы sql

Не удалось запустить службу SQL Server на Локальный компьютер. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки…:

Код ошибки 13

Решение:

При появлении данной ошибки необходимо зайти в Пуск  Microsoft SQL Server → Средства настройки  Диспетчер конфигурации SQL Server / SQL ServerConfiguration Manager  Конфигурация сети SQL Server  Протоколы для SQLEXPRESS и проверить, включены ли протоколы (все протоколы должны быть включены).

Код ошибки 1814

Вариант ошибки на английском:
Windows could not start the SQL Server on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code — 1814.

Причина: Ошибка возникает, когда по какой-то причине путь к файлам базы по умолчанию не соответствует действительному.

Решение:
Возможно в папке C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA нет необходимых файлов. Необходимо добавить с заменой файлы из папки C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\TemplateData.

Код ошибки 3417

Решение:

Перед заменой файлов рекомендуется сохранить копию папки Data в отдельной директории.

Cкопировать данные из C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\Template Data в C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\DATA

Для 64-разрядных систем — C:\Program Files (x86)\Microsoft SQL Server\MSSQLXXX\MSSQL\Template Data в C:\Program Files (x86)\Microsoft SQL Server\MSSQLXXX\MSSQL\DATA

Если замена файлов не помогла, необходимо дать права на папку Microsoft SQL Server.

Код ошибки 17058

Решение:

Необходимо дать полные права на папки C:\Program Files\Microsoft SQL Server\ и C:\Program Files (x86)\Microsoft SQL Server. Если данное решение не поможет — в свойствах службы на вкладке Вход в систему поставьте флаг С системной учетной записью.

Код ошибки 17113

Решение:

Перед заменой файлов рекомендуется сохранить копию папки Data в отдельной директории.

Cкопировать данные из C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\Template Data в C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\DATA

Search code, repositories, users, issues, pull requests…

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

  • Remove From My Forums
  • Question

  • We are in the process of upgrading from MOSS 2007 to SharePoint 2010.   I created a SharePoint 2010 development server.  All elements of the SharePoint environment are contained on this one server.  This has MSSQL Enterprise installed
    on it as well as SharePoint 2010.  I did an «attach database» of a copy of a database from our MOSS 2007 environment.  Everything was looking good.  This server was to be a template for a series of developer SharePoint environment in an ESX
    VMWare environment.  After the server was exactly the way we wanted it, we created a template of the original server and then provisioned a new virtual server from the template with a different server name.  Obviously nothing worked.  I ran
    STSADM -o renameserver and it completed fine.  One thing that happens now is that the SQL Server (MSSQLSERVER) service will not start.  Here is the error message in the event log:

    The SQL Server (MSSQLSERVER) service terminated with service-specific error %%17058.

    At the command prompt I went to c:\Program Files\Microsoft SQL Server\mssql10_50.mssqlserver\mssql\binn.

    I ran the command sqlservr.exe /c

    I get the following error:

    2011-11-07 09:52:14.49 Server      Error: 17058, Severity: 16, State: 1.
    2011-11-07 09:52:14.49 Server      initerrlog: Could not open error log file ‘E:\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG’. Operating system error = 5(Access is denied.).

    The account that I am using is a local administrator account.  Anyone have any ideas of where to go from here?  We really want to create these individual SharePoint environments for our developers in preparation for our upgrade to SharePoint 2010. 
    They need to rewrite some of our custom web parts.  Thanks for anyone that has an idea.

Answers

  • I had a similar problem. I had error 17058 and Error 1068. I tired to manually start the SQL Services: Agent, Browser, and Server with no luck all failed to start.

    Here’s what I did to fix my problem. I went to Admin Tools. I clicked on Services. I clicked on each SQL Service and changed the
    Log On as credentials. I changed them to Local System Account and Allow service to interact with Desktop. See the following screen capture.

    My current test system is as follows:

    Windows Server 2008 SP1

    MS SQL Server 2008 SP1

    Cumulative Update 10

    SCCM 2012 B2

    Single Server and Signle Site that has DNS, AD, and DHCP installed on it.

    If you’re SQL services are not running than you cannot connect to the SQL DB..

    Once I made my credential changes I tested connecting to my SQL DB by using the SQL Studio.

    I hope this helps?

    Brian @ pcteklink.com


    Checc

    • Edited by

      Tuesday, December 6, 2011 2:38 AM

    • Marked as answer by
      Lhan Han
      Tuesday, December 4, 2012 6:17 AM

  • Hi,

    Please make sure your app pool account has access to sql server and databases. i think it is a permission issue. You can change it into one of domain administrators to do a test.

    And for your need, i suggest you’d better do the attach database migration or
    move all databases way to do it since change server name will cause lots of potiential issues.

    Regards,

    Seven

    • Marked as answer by
      Seven M
      Friday, November 18, 2011 6:43 AM

Hello comunity

After running the setup of sql server 2008 on my HP server with OS Windows server 2008 R2 standard 64 bits,

the setup return errors failed on theses services:

-Database engine services

-Sql Server Replication

-Full text search

-Reporting Services

When i try to start MSSQLSERVER, i receive the following error :

event ID 17058

initerrlog: Could not open error log file ». Operating system error = 3(failed to retrieve text for this error. Reason: 15105).

Curiously, the installation on : C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\

have only create theses folders : binn, install and upgrade

and also these files:

-sql_engine_core_inst_keyfile.dll

-sql_fulltext_keyfile.dll

Could someone give me some help , because is the first time that i have this problem and i don´t know how to solve them.

Many thanks and best regards

Luis Santos

luissantos

SSCertifiable

Points: 7391

Hello comunity

I solve this problem and for those person that have the same one would should install sql server 2008 not by the autorun option, but you must with right click select : Open and Run setup as administrator.

Also, if you open SSMS and you try to browse server name and nothing appears, you need just to write

the correct server name or instance\servername.

I hope this conclusion help other users with this kind of situation.

Best regards.

Luis Santos:w00t:

julian.hatwell

SSC Veteran

Points: 257

Hello folks — I have a similar problem with my box. This was working fine before the weekend.

The server is a VM, sharing a drive with a number of other VM’s. We had a major windows update pack applied on Saturday. 100’s of patches that had not been applied for a few months. This filled up the physical disc where the servers were running and they all shut down unexpectedly.

We freed up some disc space and restarted the OS, but SQL server services did not start up. Trying to restart them manually gives me this message in the even log:

A file activation error occurred. The physical file name ‘E:\MSSQL\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\mssqlsystemresource.ldf’ may be incorrect. Diagnose and correct additional errors, and retry the operation.

Trying to start SQL server from cmd: sqlservr -T3608 gives the following message multiple times:

Error: 17058, Severty: 16, State: 1.

initerrlog Could not open error log file ».

Operating system error = 3(failed to retrieve text for this error. Reason 15105).

I have checked and the file exists at: ‘E:\MSSQL\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\mssqlsystemresource.ldf’ so not sure what I can do about that.

Can anyone help?

julian.hatwell

SSC Veteran

Points: 257

If anyone should follow this up — I found a clue in my trusty Wrox Press SQL Server Admin book «The resource database is only written to during installation or applying a service pack.»

Given my issue happened right after a service pack was applied and we had an unexpected shutdown, I thought the best thing was to re-apply the service pack. This fixed the problem.

jpipia

SSC Enthusiast

Points: 172

I am getting the exact same error. It seems out of the blue though since I didn’t apply any service packs. The only thing I can think of that changed was a bunch of Windows updates a while ago.

The .ldf file is there. Anyone know how I can get it fixed?

Thanks

Judy McNeil

Bipsy

SSCrazy

Points: 2207

Your installation is not fully completed.

try repairing your installation or remove all sql components , reboot your machine and try to install it again.

jpipia

SSC Enthusiast

Points: 172

Thanks. I will try to repair with the CD. The thing is, the installation has been completed and working for over a year.

It is just a development instalation and no one is counting on it at the moment. I just get nervous when things seem to break for no reason. I like to know the reason.

michael_gm

SSC Enthusiast

Points: 106

this is a permission problem!… you must try access the log with the user is running sql server…. orrrr…..only for testing… try adding the user is running sqlserver as admin and you’ll notice that you may start the service….

Michael Guerra.

mxhxr

Mr or Mrs. 500

Points: 551

It’s a permissions problem.

To verify that’s the case in your scenario, give the user that you are running the SQL Server service under administrative rights on the SQL Server machine. Then try to start the service. If it succeeds, you can then start to chip away at the rights to an acceptable point. But try this prior to reinstalling SQL Server or any of the other drastic measures mentioned prior.

j.noruzi

SSC Enthusiast

Points: 115

Hello guys.

I had the same problem.

my problem occurred when i change start-up parameters for sql server 2008r2 service. i had a mistake when changed that parameters.

Mistake => i forgotten putting «;» (semicolon) between each parameter. i corrected this mistake so problem solved.

this is Correct Start-up Parameters :

-dC:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf;-eC:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG;-lC:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf

er_thomas21

SSC Rookie

Points: 39

Dear All

As per the scenario above I also faced the same problem with one of my SQL server 2008 R2 edition. After troubleshooting and cross checking with another instance I found that there are two group accounts which need permission on the ERRORLOG file. i.e

1. SQLServerMSSQLUser$machinename$MSSQLSERVER

2. SQLServerSQLAgentUser$machinename$MSSQLSERVER

if there is some problem the account dont have appropriate permission on the file than you will face the SQL server Error 17058.

So to resolve this issue

MSSQLUSER should have full permission

SQLAgentUser should have read,write,read and execute permission on the file

Best of luck

Thomas(The SQL DBA)

edgar.barrios

SSC Journeyman

Points: 75

I got the same error several times. I decided to run the setup and a repair on my instance to see if that would help the issue. It didn’t. After several tries and changed to my services and log in credentials i went to the «source». Went and looked at my installation folder and found that for some reason one of my folders was missing permissions. I added my local admin local service and network service to it with full rights tried to run the service one more time and that fixed the issue.

It was a simple permissions issue. Hope this helps guys.

ps.- I notices updates where done a couple of nights before so im thinking that had something to do with the change on permissions.

ps2.- My Database and install files are on my VM Data Bank. hope this helps.

This was removed by the editor as SPAM

Grantwilson

Grasshopper

Points: 13

Grantwilson

Grasshopper

Points: 13

Hello guys,

I found the same error just yesterday. Ideally, I should have used NET START to start SQL service via command prompt. In future, I will avoid sqlservr.exe of course.

SQL error 17058 occurs due to various reasons that include insufficient privileges, corrupted log files, an issue with network policies, and permission issues.

Here at Bobcares, we have seen several such SQL related issues as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at the cause for this error and see how to fix it.

Different causes and fixes for the SQL error 17058

Let us take a look at the different reasons for this error to occur. Also, we shall see its respective fixes.

1. Cause: Insufficient privilege of SQL Server Service Account in the Log directory

Solution:

  • First, start the SQL Server Configuration Manager.
  • From the left menu options, click to select ‘SQL Server Services’.
  • Then from the right panel, right-click on ‘SQL Server (MSSQLSERVER)’ and click ‘Properties’. Here, choose the correct service.
  • Click on the ‘Startup Parameters’ tab and note the location after -e parameter.
  • Browse for the Log location.
  • Now right-click on the “Log” folder and click Properties and then access the “Security” tab.
  • Now, verify the SQL Server service account permission of this folder and give proper access to this folder.
  • Finally, restart the SQL Server service.
  • In case, if you face the same error again, then try to change highly privileged service account like “Local System”.

2. Cause: Corrupted log file

Solution:

In order to fix the corrupted log file, rename the existing log file. Renaming will generate a new log file.

3. Cause: Issue with network policies which restrict access to the server

Solution:

Add a correct network policy. Here are the steps for doing the same:

First, open the NPS console, and double-click on Policies.

Right-click Network Policies, and click New in the console tree. Now a new Network Policy wizard opens.

You can now use the New Network Policy wizard to create a policy.

4. Cause: Permission problem for the logon account

Solution:

In order to fix this error, we need to fix the permission issue. Here are the steps to change the permissions.

Access Admin Tools >> Services

Now click on each SQL Service and change the Log On as credentials. change them to Local System Account and Allow service to interact with Desktop.

[Need any assistance in fixing SQL errors? – We’ll help you]

Conclusion

In short, this error occurs due to various reasons that include insufficient privileges, corrupted log files, the issue with network policies, and permission issues. Today, we saw the different causes and their fixes to this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

Понравилась статья? Поделить с друзьями:
  • Ошибка 17653 т4
  • Ошибка 17646 ауди
  • Ошибка 171 шевроле авео т300
  • Ошибка 1762 тойота ленд крузер 100 причины
  • Ошибка 1705 хонда торнео