Share via

SQL Server on linux : sqlservr -f vs sqlservr -m

sakuraime 2,351 Reputation points
2020-10-28T03:24:41.823+00:00

sqlservr -f vs sqlservr -m what's the difference between two startup option of sql server in Linux ?

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

Shashank Singh 6,251 Reputation points
2020-10-28T05:14:01.157+00:00

Few of the things are documented here database-engine-service-startup-options

-f starts SQL Server in minimal configuration mode and also in single user mode. Minimal configuration mode is used when due to some wrong configuration SQL Server is not able to start like wrongly placed tempdb, incorrect memory configuration. You can use minimal configuration to change the configuration parameters from sp_configure and then restart SQL Server.

-m as I know is mostly used when master database is not coming online which means SQL Server complete is not coming online. You use -m option to fix master corruption or change it location. There is not much difference between the use of both but internally there is.

-m startup options are documented here start-sql-server-in-single-user-mode

Additional reading overview-of-sql-server-startup-parameters-for-the-sql-database-engine-service

I do not have exhaustive list of difference between both neither MS has documented it. But i know when to use which startup option.

Was this answer helpful?

1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. m 4,286 Reputation points
    2020-10-29T01:19:13.237+00:00

    Hi @sakuraime ,

    Is the reply helpful?

    BR,
    Mia


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?

    0 comments No comments

  2. m 4,286 Reputation points
    2020-10-28T05:52:27.637+00:00

    Hi @sakuraime ,

    sqlservr -f vs sqlservr -m what's the difference between two startup option of sql server in Linux ?

    -f (Minimal Configuration)
    -m (Single user Mode)

    Details: database-engine-service-startup-options

    More information: overview-of-sql-server-startup-parameters-for-the-sql-database-engine-service

    BR,
    Mia


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?


Your answer

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