Learn more about SQL Server tools

mssqltips logo
 

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories

 

Setting SQL Server Startup Parameters


By:   |   Updated: 2019-07-01   |   Comments   |   Related: More > SQL Server Configurations

Problem

SQL Server offers the ability to use startup parameters when your SQL Server instance starts. The default items include:

  • location of master database data file (-d)
  • location of master database log file (-l)
  • location of SQL server error logs (-e)

In addition, you can set startup parameters that use trace flags that affect the SQL Server behavior. Here is a link to startup options for SQL Server.

Solution

Setting Startup Parameters in SQL Server 2000

With SQL Sever 2000 access to the startup parameters is available right within Enterprise Manager.  You can get to the startup parameters by right clicking on the server name and selecting "Properties".  The following screen appears and there is a great big button "Startup Parameters..." which you can click and it will allow to see and set the startup parameters.

sql server properties general 2000

After clicking on "Startup Parameters" you get the following window.  From here you can click on the parameter and click "Remove" to remove it or click on "Add" to add a new parameter. It is pretty straight forward.

sql server startup parameters 2000

Setting Startup Parameters in SQL Server 2005 and later

With SQL Server 2005 and later, to find the startup parameters you need to go to the SQL Server Configuration Manager tool.  This can be found in the menus through: Microsoft SQL Server > Configuration Tools > SQL Server Configuration Manager.

Once the application is launched you will see the following screen.

sql server services 2005
  • Select the SQL Server service that you want to set the startup parameters for such as "SQL Server (TEST1)" for our example
  • Right click and select "Properties" and the following window will pop up
  • Go to the "Advanced" tab
sql server startup parameters 2005
  • Select "Startup Properties" and the following window will pop up
sql server startup parameters list 2005
  • From here you can add, change or remove your startup properties
  • Note: each startup parameter is separated by a semicolon (;)
  • Once you are done click "Apply" to save your changes

In later versions of SQL Server Configuration Manager, there are additional tabs and a new tab "Startup Parameters" that breaks out the parameters from the other settings as shown below.  Also, each parameter is on its own separate line, so you don't need to worry about using a semicolon as a delimiter anymore.

sql server startup parameters
Next Steps
  • If you need to add, change or delete startup paramters, know you know where to find them
  • Get familiar with setting startup parameters, these come in handy for setting trace flags and if you need to set the instance in single user mode


Last Updated: 2019-07-01


get scripts

next tip button



About the author
MSSQLTips author Greg Robidoux Greg Robidoux is the President of Edgewood Solutions and a co-founder of MSSQLTips.com.

View all my tips
Related Resources




Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 


Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.



    



Learn more about SQL Server tools