In this article, we are going to Troubleshoot SQL Service Error. I recently had a client called me and told me that their application stopped working, and they did not know precisely the issue and asked me to investigate it and resolve the issue. As the client’s data center is far from my place, I decided to take the server remote access using VPN and started the investigation.
When I started accessing the app, the app was spitting out that the database was not accessible from the app server. So, I logged into the Microsoft SQL server and started checking the status of the service. I saw the SQL server instance on services not running, and when I tried to start the service, I get the following error. We are going to troubleshoot SQL Service Error 1051 in this article.
As mentioned in the services warning, I went to the system log on the MS SQL server and analyzed the records. I found that the MS SQL server was running on evaluation and stopped working after the evaluation period. So I confirmed license is the issue.
I pointed this to my client and requested them to arrange for the license and its product key.
Upgrade MS SQL server instance edition to Troubleshoot SQL Service Error
I got the license key and launched the SQL installation center from StartàMicrosoft SQL 2017àSQL installation center. You can launch this from launching setup.exe on MS SQL server installation media as well. Once the Installation center is launched, click Maintenance on the left side navigation and click Edition upgrade.
On the product key page, select ”Enter the product key,” and type the product key and click Next.
Accept the license terms and click Next.
Verify the Edition upgrade rules do not have any error. The SQL server is installed on the domain controller in my environment, so ignore the warning and click on Next.
Select the instance you want to upgrade. You can see the instance name and select that instance. In this case, MSSQLSERVER instance, which pointed out with evaluation. Select the instance and click Next.
Once the ”Ready to upgrade edition” page click upgrade.
The upgrade process will take about 5 mins to complete; wait if it even takes more than that.
Once the upgrade is over, you will get a complete status. All succeeded with a green tick stating that Microsoft SQL edition upgraded.
Now for to services and start the Microsoft SQL instance service, and you see the service running.
Conclusion:
In this article, we gone through troubleshooting the SQL server instance services not starting issue and upgrading the SQL server edition for a particular instance. If you want to learn more about MS SQL click here and for installation guidance click here.
I would like to hear from you if you come across any issues doing this or have any feedback to share. I look forward to sharing our thoughts in the comments section, and I sign off for now
- Remove From My Forums
SQL 2019 Fails to Start — Error 17051
-
Question
-
I have a fairly significant set of issues that I cannot figure out how to resolve that has brought down a bunch of systems. A windows update occurred and the SQL 2019 RC1 server rebooted itself (do not believe that this error is related just coincidental).
This error indicates that the SQL Server evaluation period has expired. Upon reviewing the startup logs this concurs with my belief:
I am confused about why I am running into this issue as I am running a developer version of SQL and not the evaluation version but none the less it currently appears to be a problem.
To attempt to resolve this issue I have done the following:
- Attempted to do an edition upgrade and set everything back to developer and the process ran and completed successfully but the service will still not start.
- Attempted to upgrade editions to a licensed version of SQL (which I do also own) and I cannot complete the upgrade because the SQL server is not running.
- I attempted to follow instructions to turn back the computer time and set common files registry entry to «3» in an attempt to trick it into being active so that I could upgrade. My system automatically reverts the time back to the standard
time almost immediately.- Attempted to turn off network connection to disable time sync
- Defaulted the time settings for windows
- Unjoined the server from the domain thinking GPO might be interfering
This system MUST be restored. Any ideas you have on how to get it back up and running again would be seriously appreciated!
-
Moved by
Friday, August 7, 2020 5:33 PM
Upgrade question
Answers
-
Thanks all!
I was finally able to get the system date/time switched out and in combination with the registry adjustments was able to get the SQL Server and once again turn on. After that the standard upgrade to the enterprise edition completed without any further issues.
The problem is now resolved!Thank you all for your helpful input and advice.
-
Marked as answer by
JordanReich
Saturday, August 8, 2020 4:01 AM
-
Marked as answer by
пятница, 22 февраля 2013 г.
Ошибка запуска MS SQL 17051
«Не удалось запустить службу SQL Server на SQLSERVER. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки 17051»
Связана с проблемой с ключем.
Для решения —
Пуск — Все программы — Microsoft SQL Server 2008 R2 — Средства настройки = Центр установки SQL Server (64-разрядная версия)
После запуска — выбираем слева «Обслуживание» и далее «Обновление выпуска» . Вводим имеющийся ключ.
General information are being logged into Event log whereas additional information are being logged into Error Log located by default in DRIVE_LETTER:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLLogERRORLOG
When SQL Server does not start which you would find out by simply looking into configuration manager …
… Then first place where you should start looking is the Event Log – System category. Find an error generated by Service Control Manager.
Sometimes error codes are “G oogleable ” “Bingable” through the Error Log (path is mentioned above) messages are more verbose. Let’s take a look into the Error Log …
Mind the row number 13 “SQL Server evaluation period has expired.” Now you have two options. Uninstall your evaluation copy of SQL Server or run Edition Upgrade – you will need to enter your Product Key during upgrade process.
For Edition Upgrade you will need SQL Server setup files. In SQL Server Installation center navigate to Maintenance section and click Edition Upgrade.
Check whether all Setup Support Rules are marked as Passed and click OK.
Again check whether all Rules are marked as Passed or Not applicable and click Next.
In Product Key step change Radio Button to option Enter the product key and type in your key.
In next steps accept license terms, specify your instance you wish to upgrade, check edition upgrade rules and finally click Upgrade button.
I my case Upgrade and Back button had been gray for a few minutes. When the upgrade process is done you will see similar screen with link to Setup Boostrap Log.
Now you might need to start your SQL Server Services manually.
When you connect to your instance you may check your edition by running script bellow.
Your setup files does not need to be at same Service Pack level as your instance (no need for slipstreaming). Tested by myself 🙂
SQL DBA – Windows could not start the SQL Server… refer to service-specific error code 17051 – SQL Server Evaluation period has expired
Ok, one fine day you opened SSMS (SQL Server Management Studio) and tried to connect to a SQL Instance, but it is not getting connected. You are getting following error message on a popup box:
–> You may also get following error:
—————————
Microsoft SQL Server Management Studio
—————————
Evaluation period has expired. For information on how to upgrade your evaluation software please go to http://www.microsoft.com/sql/howtobuy
—————————
OK
—————————
–> Investigate
Go to RUN and type services.msc to open Services window and see that SQL Server services are not running. On starting the SQL Server service it is giving you following message with error code 17051:
Now as per the error message you open the Event Viewer and see that the Event with ID 17051, which shows SQL Server Evaluation period has expired under Details section:
Now, you recall that the Instance that you had installed was under Evaluation of 180 days, because you didn’t applied any Product Key. So, now how can you make it live again? All you need is a Product key of SQL Server and some clicks:
1. Open the SQL Server Installation Center and click on Maintenance link, and then click on Edition Upgrade:
2. Now on the Upgrade window Click Next and you will reach the Product Key page, apply the Key and click Next:
3. On the Select Instance page, select the SQL Instance that you want to fix and Click next. It will take some time and finally you will see a final window and click Upgrade:
4. Finally you will see the successful window, click on Close button:
–> But, if the above process fails at Engine_SqlEngineHealthCheck step or anywhere in between, then you can use following command line installation option to skip this specific rule to allow the upgrade process to complete successfully:
a) Open Command Prompt (CMD)
b) Go to the folder where SQL Server Setup, setup.exe file is located (like C:Program FilesMicrosoft SQL Server110Setup BootstrapSQLServer2012)
c) Apply following command: setup.exe /q /ACTION=editionupgrade /InstanceName=MSSQLSERVER /P >
The should be the 25 digit Key.
The above command line runs SQL Server setup in silent mode.
5. Now Restart the SQL Server Service for this Instance, and you will see it running fine.
–> Finally, go back to SSMS and now you can connect to the SQL Instance.
SQL Server might not start from all variety of reasons including permission issues, master database not available or corrupted, service account issues, etc. In this article I will talk about diagnose of failed service start and how to fix %%17051 error.
Diagnostic SQL Server service failed to start
General information are being logged into Event log whereas additional information are being logged into Error Log located by default in DRIVE_LETTER:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLLogERRORLOG
When SQL Server does not start which you would find out by simply looking into configuration manager …
… Then first place where you should start looking is the Event Log – System category. Find an error generated by Service Control Manager.
Sometimes error codes are “Googleable” “Bingable” through the Error Log (path is mentioned above) messages are more verbose. Let’s take a look into the Error Log …
Mind the row number 13 “SQL Server evaluation period has expired.” Now you have two options. Uninstall your evaluation copy of SQL Server or run Edition Upgrade – you will need to enter your Product Key during upgrade process.
Edition Upgrade
For Edition Upgrade you will need SQL Server setup files. In SQL Server Installation center navigate to Maintenance section and click Edition Upgrade.
Check whether all Setup Support Rules are marked as Passed and click OK.
Again check whether all Rules are marked as Passed or Not applicable and click Next.
In Product Key step change Radio Button to option Enter the product key and type in your key.
In next steps accept license terms, specify your instance you wish to upgrade, check edition upgrade rules and finally click Upgrade button.
I my case Upgrade and Back button had been gray for a few minutes. When the upgrade process is done you will see similar screen with link to Setup Boostrap Log.
Now you might need to start your SQL Server Services manually.
When you connect to your instance you may check your edition by running script bellow.
SELECT @@VERSION
Note for SQL Server setup files
Your setup files does not need to be at same Service Pack level as your instance (no need for slipstreaming). Tested by myself 🙂
About Jiří Hubáček
Experienced consultant and blogger for Microsoft SQL Server and related products. Likes cats, workouts and delicious food. Enjoys sailing, traveling, time spent with wife and friends.
При попытке запуска службы сервера MS SQL Server 2008 R2 ошибка
«Не удалось запустить службу SQL Server на SQLSERVER. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки 17051»
Связана с проблемой с ключем.
Для решения —
Пуск — Все программы — Microsoft SQL Server 2008 R2 — Средства настройки = Центр установки SQL Server (64-разрядная версия)
После запуска — выбираем слева «Обслуживание» и далее «Обновление выпуска». Вводим имеющийся ключ.
Stuck with SQL Error 17051 “Server Evaluation Edition to Enterprise Edition”? We can help you.
Generally, we use the SQL Server evaluation edition for test purposes before deployments.
If the validity of the Evaluation period exceeds, then SQL Server will shut down and will not come online.
To keep it running we need to activate this SQL Server instance to a licensed version.
As part of your Server Management Services, we assist our customers with several SQL queries.
In this article, let us see how to upgrade SQL Server Evaluation edition to Enterprise, Standard, or Developer edition.
SQL Error 17051 “Server Evaluation Edition to Enterprise Edition”
Recently, one of our customers had his SQL Server Instances suddenly stop working and shut down automatically. The services were not back online.
In addition, it was even impossible to launch SQL Server Management studio.
On further check on windows event viewer, we saw multiple event IDs for SQL Server like Event ID 7024, Event ID 17051, etc.
If the SQL Server evaluation period expires, we will get this error.
In the event viewer, the event id 7024 says something wrong with the application SQL Server.
The SQL Server error log shows:
Error: 17051, Severity: 16, State: 1. SQL Server evaluation period has expired.
We ensure the version of SQL Server is SQL Server Evaluation version on this database server. We can launch the property window of SQL Server service in SQL Server Configuration Manager to find it.
Then we upgrade the SQL Server evaluation edition to bring it online to work as before.
To start this, we need SQL Server setup files to perform this upgrade. Follow the below steps to activate the expired SQL Server evaluation version to either standard, enterprise, or developer edition.
Upgrade SQL Server Evaluation Edition to Enterprise Edition
- Initially, we decide on the edition, copy its setup files to the target SQL Server machine.
- Then we launch SQL Server Installation Center to run this upgrade. Run them using a sysadmin account.
- Double click on Setup.exe file to start the upgrade. We will get SQL Server Installation Center once we run setup.exe file.
- Click on the “Maintenance” tab and then click on the “Edition Upgrade” option.
- Once we click on Edition upgrade, we will have a screen to enter the product key of SQL Server.
- Verify the correct product key and click on Next to proceed.
- Then we will get a pop-up “Evaluation period has expired”. Click Ok to proceed.
- Next will be to accept the License Terms. Click Next after selecting the “I accept license terms” checkbox.
- Verify the SQL Server instance and click Next to proceed. Now the edition will show as Evaluation.
- Once we click Next, rules will be checked by the setup and we can see the progress bar.
The final window is to recheck and verify the details. Once done, click on the “Upgrade” button to start the upgrade.
Eventually, the process will end up with a new upgraded edition. We activate SQL Server to run it on our server and it upgrades the Enterprise edition.
In addition, we can check the new edition by launching the property window of the SQL Server service in the SQL Server Configuration window.
Now we can go ahead and launch SQL Server Management Studio and establish a database connection to check all details to ensure everything is perfect on the database server.
[Need help with the error? We are available 24*7]
Conclusion
In short, we saw an effective method to resolve SQL Error 17051.
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»;
- Remove From My Forums
SQL 2019 Fails to Start — Error 17051
-
Question
-
I have a fairly significant set of issues that I cannot figure out how to resolve that has brought down a bunch of systems. A windows update occurred and the SQL 2019 RC1 server rebooted itself (do not believe that this error is related just coincidental).
This error indicates that the SQL Server evaluation period has expired. Upon reviewing the startup logs this concurs with my belief:
I am confused about why I am running into this issue as I am running a developer version of SQL and not the evaluation version but none the less it currently appears to be a problem.
To attempt to resolve this issue I have done the following:
- Attempted to do an edition upgrade and set everything back to developer and the process ran and completed successfully but the service will still not start.
- Attempted to upgrade editions to a licensed version of SQL (which I do also own) and I cannot complete the upgrade because the SQL server is not running.
- I attempted to follow instructions to turn back the computer time and set common files registry entry to «3» in an attempt to trick it into being active so that I could upgrade. My system automatically reverts the time back to the standard
time almost immediately.- Attempted to turn off network connection to disable time sync
- Defaulted the time settings for windows
- Unjoined the server from the domain thinking GPO might be interfering
This system MUST be restored. Any ideas you have on how to get it back up and running again would be seriously appreciated!
-
Moved by
Friday, August 7, 2020 5:33 PM
Upgrade question
Answers
-
Thanks all!
I was finally able to get the system date/time switched out and in combination with the registry adjustments was able to get the SQL Server and once again turn on. After that the standard upgrade to the enterprise edition completed without any further issues.
The problem is now resolved!Thank you all for your helpful input and advice.
-
Marked as answer by
JordanReich
Saturday, August 8, 2020 4:01 AM
-
Marked as answer by
The SQL Server is a relational database management system from Microsoft. The system is designed and built is to manage and store information. The system supports various business intelligence operations, analytics operations, and transaction processing. Kindly refer to these related guides: How to use Software Licensing Management Tool (slmgr) to install and uninstall Windows product key, What are the differences between various Editions of Microsoft SQL Server, and how to install MSSQL Server 2019 Developer Edition and SSMS on Windows, and how to download and install Microsoft SQL Server 2019 Express edition and SSMS, and the server was not found or was not accessible: A network-related or instance-specific error occurred while establishing a connection to SQL Server.
When you try to start the SQL Server service, the following error below will be prompted "Windows could not start the SQL Server service on local computer 17051".
Reason for the error
The reason why the SQL service could not be started is that the SQL Server Evaluation period has expired.
When you try to open the SSMS (SQL Server Management Studio) and try to connect to a SQL Instance, the following error below will be prompted “. SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
We have been directed to also take a look at the Event Viewer, as you can see below, the error message from the Event Viewer with event ID 17051, which shows SQL Server Evaluation period has expired under the General section.
Solution
I have installed SQL in my Lab using the Evaluation of 180 days because you didn’t apply any Product Key. So, now how can you make it live again? All you need is a Product key of SQL Server now. Please refer to this guide on “how to upgrade MS SQL server instance edition”.
Since we are aware that the evaluation period has expired, please refer to these links {1} and {2} on how to upgrade your evaluation software.
I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.
Ok, one fine day you opened SSMS (SQL Server Management Studio) and tried to connect to a SQL Instance, but it is not getting connected. You are getting following error message on a popup box:
Cannot connect to XYZ_Instance. ADDITIONAL INFORMATION: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) The system cannot find the file specified.
–> You may also get following error:
—————————
Microsoft SQL Server Management Studio
—————————
Evaluation period has expired. For information on how to upgrade your evaluation software please go to http://www.microsoft.com/sql/howtobuy
—————————
OK
—————————
–> Investigate
Go to RUN and type services.msc to open Services window and see that SQL Server services are not running. On starting the SQL Server service it is giving you following message with error code 17051:
Now as per the error message you open the Event Viewer and see that the Event with ID 17051, which shows SQL Server Evaluation period has expired under Details section:
Now, you recall that the Instance that you had installed was under Evaluation of 180 days, because you didn’t applied any Product Key. So, now how can you make it live again? All you need is a Product key of SQL Server and some clicks:
1. Open the SQL Server Installation Center and click on Maintenance link, and then click on Edition Upgrade:
2. Now on the Upgrade window Click Next and you will reach the Product Key page, apply the Key and click Next:
3. On the Select Instance page, select the SQL Instance that you want to fix and Click next. It will take some time and finally you will see a final window and click Upgrade:
4. Finally you will see the successful window, click on Close button:
–> But, if the above process fails at Engine_SqlEngineHealthCheck step or anywhere in between, then you can use following command line installation option to skip this specific rule to allow the upgrade process to complete successfully:
a) Open Command Prompt (CMD)
b) Go to the folder where SQL Server Setup, setup.exe file is located (like C:Program FilesMicrosoft SQL Server110Setup BootstrapSQLServer2012)
c) Apply following command: setup.exe /q /ACTION=editionupgrade /InstanceName=MSSQLSERVER /PID=<appropriatePid> /SkipRules= Engine_SqlEngineHealthCheck
The <appropriatePid> should be the 25 digit Key.
The above command line runs SQL Server setup in silent mode.
5. Now Restart the SQL Server Service for this Instance, and you will see it running fine.
–> Finally, go back to SSMS and now you can connect to the SQL Instance.