none
MS SQL Server cannot connect to server RRS feed

Réponses

  • Hi Jean:

    Below 5 different Ways to Start SQL Server Services

    Windows Services

    This is one of the most common way used by all DBAs. Top open services applet, we can either go to start > Run and type services.msc or by using the Windows Start, Programs, Administrative Tools, Services menu. Then, double-click (or right click) the MSSQLServer service, and right-click the required action. If we want to start a SQL Server named instance, look for the service called SQL Server (Instance Name). Let’s say our machine has named instance called SQL2014 then we would see SQL Server (SQL2014), as shown below:

    Click to see full-sized image

    If we wish to add some startup parameter, we can do that by going to properties and click on start.

    The Net Start Command

    Methods so far are the one to use User Interface, but we can also use the Net Start command. Type net start mssqlserver at the command prompt. To start a named instance, type net start MSSQL$instancename. In below command prompt, I have started default instance.

    If we want to add additional startup parameters, we can append them in the command. For example, if we want to start SQL in single user mode then we can add /m as below

    net start mssqlserver /m

    If we want to use trace flag (let’s say Trace Flag 3608) then we can run below.

    net start mssqlserver /T3608

    We can also combine multiple startup parameter by appending them on same line.

    Using Sqlservr.exe executable.

    We can also use sqlservr.exe to start SQL Server when we want to enable debugging or troubleshoot etc. To start an instance of SQL Server, we must run the sqlservr.exe program from the \binn directory, where the SQL Server binary files are stored by default.

    Click to see full-sized image

    We have given -s parameter and given instance name to start particular instance. For default instance, we need to provide MSSQLSERVER. For complete list of startup parameters refer book online. http://technet.microsoft.com/en-US/library/ms190737.aspx

    SQL Server Configuration Manager

    This is the best way to control the services because we are using the tool which is designed for this purpose. Start > Programs > Microsoft SQL Server (version) > Configuration Tools > SQL Server Configuration Manager. Once we click on SQL Server Services on left, we can see all services on right pane. Then we can right-click SQL Server (MSSQLServer), and then choose required action. A green icon next to the server name and indicates that the service is running.

         

    This tool can’t be used to control remote SQL Services.

    AK

    AO


    L’information n’a de valeur que si elle est partagée!! AK |Mon Blog|

    lundi 10 octobre 2016 15:39
  • Hi jean Tshishimbi, 

    Please can you check the rule in your local firewall? if the port SQL is Allow

    SQL Server Network Configuration is set? 


    Héritier KANDOLO. Microsoft Certified Professional MCPs: Windows Server 2012 r2, MTA Windows Server Administration Fundamentals, MTA Networking Fundamentals. http://www.rootandadmin.com/

    mardi 11 octobre 2016 04:47

Toutes les réponses

  • Hi Jean,

    Are you check  that the Database Engine is running ?

    1. In Registered Servers, if the name of your instance of SQL Server has a green dot with a white arrow next to the name, the Database Engine is running and no further action is necessary.

    2. If the name of your instance of SQL Server has a red dot with a white square next to the name, the Database Engine is stopped. Right-click the name of the Database Engine, click Service Control, and then click Start. After a confirmation dialog box, the Database Engine should start and the circle should turn green with a white arrow.


    L’information n’a de valeur que si elle est partagée!! AK |Mon Blog|

    lundi 10 octobre 2016 14:45
  • Hi Ahmed

    I'm beginner, I can not check if the database engine is running through the dots, please give me the steps

    lundi 10 octobre 2016 15:00
  • Hi Jean:

    Below 5 different Ways to Start SQL Server Services

    Windows Services

    This is one of the most common way used by all DBAs. Top open services applet, we can either go to start > Run and type services.msc or by using the Windows Start, Programs, Administrative Tools, Services menu. Then, double-click (or right click) the MSSQLServer service, and right-click the required action. If we want to start a SQL Server named instance, look for the service called SQL Server (Instance Name). Let’s say our machine has named instance called SQL2014 then we would see SQL Server (SQL2014), as shown below:

    Click to see full-sized image

    If we wish to add some startup parameter, we can do that by going to properties and click on start.

    The Net Start Command

    Methods so far are the one to use User Interface, but we can also use the Net Start command. Type net start mssqlserver at the command prompt. To start a named instance, type net start MSSQL$instancename. In below command prompt, I have started default instance.

    If we want to add additional startup parameters, we can append them in the command. For example, if we want to start SQL in single user mode then we can add /m as below

    net start mssqlserver /m

    If we want to use trace flag (let’s say Trace Flag 3608) then we can run below.

    net start mssqlserver /T3608

    We can also combine multiple startup parameter by appending them on same line.

    Using Sqlservr.exe executable.

    We can also use sqlservr.exe to start SQL Server when we want to enable debugging or troubleshoot etc. To start an instance of SQL Server, we must run the sqlservr.exe program from the \binn directory, where the SQL Server binary files are stored by default.

    Click to see full-sized image

    We have given -s parameter and given instance name to start particular instance. For default instance, we need to provide MSSQLSERVER. For complete list of startup parameters refer book online. http://technet.microsoft.com/en-US/library/ms190737.aspx

    SQL Server Configuration Manager

    This is the best way to control the services because we are using the tool which is designed for this purpose. Start > Programs > Microsoft SQL Server (version) > Configuration Tools > SQL Server Configuration Manager. Once we click on SQL Server Services on left, we can see all services on right pane. Then we can right-click SQL Server (MSSQLServer), and then choose required action. A green icon next to the server name and indicates that the service is running.

         

    This tool can’t be used to control remote SQL Services.

    AK

    AO


    L’information n’a de valeur que si elle est partagée!! AK |Mon Blog|

    lundi 10 octobre 2016 15:39
  • Hi jean Tshishimbi, 

    Please can you check the rule in your local firewall? if the port SQL is Allow

    SQL Server Network Configuration is set? 


    Héritier KANDOLO. Microsoft Certified Professional MCPs: Windows Server 2012 r2, MTA Windows Server Administration Fundamentals, MTA Networking Fundamentals. http://www.rootandadmin.com/

    mardi 11 octobre 2016 04:47
  • Bonjour,

    le français est de rigueur sur ce forum ! Les anglophones trouveront sans problème leurs propres forums...

    Ceci dit, avez-vous fait une installation "personnalisée" de SQL Express?

    Si ce n'est pas le cas, le protocole TCPIP n'est pas configuré, ni démarré par défaut.

    => On peut vérifier cela avec la commande suivante :

    C:\Windows\system32>netstat -aob |find /I "1433"
      TCP    0.0.0.0:1433           TDSRV28:0              LISTENING       18160

    ----

    Donc, soit configurer le protocole TCPIP dans SQL/Express, soit utiliser un des autres protocoles activés par défaut (Named Pipes).

    https://technet.microsoft.com/en-us/library/ms165677%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396

    A bientôt,


    Thierry DEMAN. Exchange MVP. MCSE:Messaging 2013,MCSE:Server Infrastructure 2012(83 MCPs). MCSA Office 365 https://mvp.microsoft.com/en-us/mvp/Thierry%20Deman-7660 http://base.faqexchange.info

    mardi 11 octobre 2016 06:37