Sql Server Services not restarting - The request failed or the service did not respond in a timely fashion - sql-server

I tried to establish remote connection to my Sql Server 2014 on Windows Server 2008 machine. To do this I enabled TCP/IP added port 1433. The prompt asked me to restart my services for the changes to take effect. However on trying to restart the services, I'm getting the below error message -
The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details.
The steps I have tried -
1. Tried disabling VIA
2. Tried replacing Master and MastLog files from TemplateData to Data
3. Tried disabling TCP/IP
4. Tried starting the services with user as local system
I tried the above based on similar questions from stackoverflow and nothing seems to work.

Related

Cube does not connect

I have created a Cube but I can't it to connect. In the Browser it keeps saying that "A connection cannot be made to redirector. Ensure that SQL Browser service is running." and if I click more information it says that "No connection could be made because the target machine activerly refused it 127.0.0.1:2382 (System)".
I made sure I have all the following services running.
But still doesn't work.
I have put rules in the Firewall to allow the ports 2382 and 2823. Nothing.
I changed the Server Target project from Localhost to my particular server. Nothing.
I still need to try to install SQL Server Analysis Service to try that as I don't have it in my current services but I can't find a place to download it and install.
Any ideas in how to solve this?

Datasource verification problems after Windows updates

Yesterday windows updates were installed on my laptop, and afterwards many features of ColdFusion were out of configuration.
I am using ColdFusion 2016 and SQL Server 2016 RC.
I fixed a number of issues (see below) but still get the message
Connection verification failed for data source: MT_EL
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer
JDBC Driver]Error establishing socket to host and port: 8500:1433.
Reason: Network is unreachable: connect The root cause was that:
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer
JDBC Driver]Error establishing socket to host and port: 8500:1433.
Reason: Network is unreachable: connect.
The DSNs had been verifying for at least a year before the problems occurred.
So far I have done the following:
Both SQL Server and CF Server had to be started again. SQL Server was not a problem but the CF Server would not start. I went to the jvm.config file and reduced the -xms setting. This did not solve anything, so I looked at the logs. From the logs it was apparent that the neo-security.xml file was corrupted, and upon checking I saw that neo-security.xml was now empty. neo-datasource, neo-drivers and one or two other files were also empty. The back-ups of these files were also empty, but I found some old versions in another place, and copied them over. Now I was able to start the CF Server and get into the CF Administrator, but had to set up user names/passwords and also DSNs again.
SQL Server Configuration Manager had been moved to a different folder, but I found it and soon saw an error message saying that SQL Server Configuration Manager could not connect to the wmi provider. I fixed this by opening a command prompt in administrator mode and typingmofcomp "%programfiles(x86)%\Microsoft SQL Server\13\Shared\sqlmgmproviderxpsp2up.mof".
Now I could get into SQL Server Configuration Manager, but for some reason it is listed twice, The malfunctioning one still says I cannot connect to the wmi provider, but expanding the functioning one, I found that TCP/IP is enabled and the default port is 1433.
I checked the firewall and could not see any issues there.
SQL permissions + log in/password credentials are the same as before, when there were no DSN verification problems.
I have tried ports 8501 and 8502, but the above error persists.
I have checked the SQL Server logs. It is apparent that a number of errors occurred yesterday and certain features were disabled. However it is evident that these issues have now been resolved, and the most recent messages are of informational type and state that no user action is necessary.
Anyone any ideas? Thank you in advance for any comments/assistance.

The MSSQLSERVER service on Local Computer started and then stopped. Some services stop automatically

I have created one sample of node js . But when I start the application is going to connection of sql server then not give response by sql server.
When i going in service panel and start sql server agent then give blow error....
This service on local computer started and then stopped. some service stop automatically if then are not in use by other service or programs
OR.........
When i am going in the sql server config and start of sql server agent then show error
The request failed or the service did not respond in a timely fashion. Consult the event log log or other application error for details.
I had found the solution to this problem. I have added the TCP Port 1433 in SQL set the TCP Port=1433
Configuration => Protocols for SQLEXPRESS => TCP/IP
Then right click and go to property
After that show screen and go to Ip Address
After that show screen and go to IPALL
After that set the TCP Ip: 1433
And click on Apply and OK
Worked for me after changing the appropriate user and credential for the instance.
SQL Server is running, as shown in your screen shots:
If Node is failing to connect to it, it's probably a flaw in your connection string.
What isn't running is SQL Server Agent. Which is a system for running scheduled tasks in SQL Server. It is bizarrely installed but not runnable when the SQL Server instance you're dealing with is SQL Server Express. Which, again, your screenshots confirm is the case here.
In my case just needs to disable VIA protocol.
Go to Sql Server Configuration Manager-> Protocols for MSSQLSERVER then right click on VIA and select disable.
Alert me if that's it!

SQL Server Service wont start up

I just rebooted my development server but when the server came back up, I can no longer connect to the DB.
I can't even connect from the Management Studio on the server.
So I check the services and the SQL Server (MSSQLSERVER) and SQL Server Agent (MSSQLSERVER) are not started. Starting them gives me an error
Windows could not start the XXX
service.
Any ideas?
EDIT: In addition, I ran the service from the command line and noticed this error:
2010-11-24 15:38:32.02 Server Error: 26055, Severity: 16, State: 1.
2010-11-24 15:38:32.02 Server The SQL Server failed to initialize VIA suppo
rt library [QLVipl.dll]. This normally indicates the VIA support library does no
t exist or is corrupted. Please repair or disable the VIA network protocol. Erro
r: 0x7e.
So I went into The Configuration Manager -> Network Configuration -> Protocols and disabed VIA. That allowed me to start it back up again... but I'm worried that is should be enabled...
-Evan
Check the event viewer and see if there's a reason logged for it not starting. I've seen something similar when the server runs out of available ram.
Since this is your dev server you probably don't need VIA service running, as long as SQL is started you should be ok.
Firstly check the event log
If these errors is shown
The SQL Server failed to initialize VIA support library [QLVipl.dll].
TDSSNIClient initialization failed with error 0x7e.
Then only disable your VIA protocol services from both.
SQL Native Client
SQL Server Network Configuration
After that restart you SQL browser service and SQL server agent service from SQL server configuration manager

SQL Server Express: User Instance Issue

Greetings – To automate testing of our database SPROCs, we’ve been using dynamically created databases inside of a User Instance. This has been working very well – the build server and, until very recently, all the developers could all run the tests. However, one of our developer machines is now returning the following error when we try to connect to the user instance:
Failed to generate a user instance of
SQL Server due to a failure in
starting the process for the user
instance. The connection will be
closed.
Here is what the log file says:
2008-12-04 10:46:29.77 Logon
Error: 15372, Severity: 16, State: 1.
2008-12-04 10:46:29.77 Logon
Failed to generate a user instance of
SQL Server due to a failure in
starting the process for the user
instance. The connection will be
closed. [CLIENT: ]
What I’ve done to fix it so far
Deleted C:\Documents and Settings[username]\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data
Changed SQL Service to run as “Local System” instead of “Network Service”
Uninstalled SQL Express, deleted ALL data directories (e.g. “MSSQL.1”), and reinstalled SQL Express
None of these “fixes” have fixed the problem. It used to work on the machine in question, and we would like not to have to repave it.
Please help!!!
Thanks - Jordan
Okay, I tried all of the above fixes again, and then I restarted the entire system and it appears to work. Strange! I had restarted my system in the past, but it looks like you have to apply these fixes first and then restart. I think I'll try switching the service back to logging in as Network Service.
Thanks - Jordan
I found the same issue on my azure VM. Then I opened the SQL Server Configuration Manager, opened SQL Server Network Configuration, -Protocols for and found that "Named Pipes" and "TCP/IP" were disabled. I enabled them, and the error went away.

Resources