How to start sql server

Kailas Rautrao 0 Reputation points
2024-02-26T13:09:32.6233333+00:00

When I am trying to open sqlserver file from binn folder it giving me an error as, Your SQL Server installation is either corrupt or has been tampered with(Error getting instance id from name). Please uninstall then re-run setup to correct this problem.
How ever I 7-8 times I done uninstallation and installation still problem is not resolved .

SQL Server Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2024-02-26T15:09:16.86+00:00

    You cannot "start" SQL Server directly. It is a service and can only be run as such. By default SQL Server should be running all the time (assuming you installed Standard or higher edition). Express may not run by default.

    The UX approach is to go to Services (as an admin), scroll down to Microsoft SQL Server and then Start the service. If you want a non-UX approach then start Powershell as an admin (only admins can start services) and run this.

    start-service MSSQL
    

    Note that this assumes you are using the default instance name of SQL. If you named your SQL instance then the service name is different. To get the service name do this.

    get-service mssql*
    

    The actual SQL instance will be something like MSSQL$instancename.

    If SQL is not configured to auto-start and you need it running all the time then ensure the start type is set to Automatic.


  2. LiHongMSFT-4306 31,566 Reputation points
    2024-02-27T02:30:58.3633333+00:00

    Hi @Kailas Rautrao

    How to start sql server

    • Manually start in the Windows Services console (Administrative Tools->Services), or make it start automatically when Windows starts.
    • Manually start in SQL Server Configure Tools->SQL Server Configuration Manager.
    • Manually start in SQL Server Management Studio.
    • In the Windows command line window, run "sqlservr.exe -c -s INSTANCENAME".

    In the first three methods, SQL Server will be started as a background service. SQL Server logs are recorded in a log file. The last way is to run SQL Server as a generic application. SQL Server log information will appear in the current command line window. If you close the command line window directly, the SQL Server process will also be closed.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.