Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL - Is running RECONFIGURE dangerous in production

I need to run the following on my production server:

EXEC sp_configure 'xp_cmdshell', 1;  
GO  

RECONFIGURE;  
GO 

My question is, Is there any danger running this command in a production environment. Would it drop any connection and would end users notice any down time?

like image 277
Richard Thompson Avatar asked Oct 24 '25 03:10

Richard Thompson


1 Answers

There will be no downtime,

RECONFIGURE specifies that if the configuration setting does not require a server stop and restart, the currently running value should be updated

https://learn.microsoft.com/en-us/sql/t-sql/language-elements/reconfigure-transact-sql

If you use 'with override' it can cause problems. i.e. it will allow you to change settings that you shouldn't change without a restart.

The usual proviso applies, you should test this in a test environment before using it in production.

like image 94
JeffUK Avatar answered Oct 25 '25 19:10

JeffUK