Explain sp_configure commands, set commands?

Answer Posted / bhasskar

sp_configure :
The xp_cmdshell option is a server configuration option
that enables system administrators to control whether the
xp_cmdshell extended stored procedure can be executed on a
system.
—- To allow advanced options to be changed.

EXEC sp_configure ’show advanced options’, 1

GO
—- To update the currently configured value for advanced
options.

RECONFIGURE

GO

—- To enable the feature.

EXEC sp_configure ‘xp_cmdshell’, 1

GO

—- To update the currently configured value for this
feature.

RECONFIGURE
GO
SET:
This command is used to set the values to the variables
ex:
declare @id int
set @id=2




Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a schema in sql server 2005? : Sql server database administration

509


How to create new databases with "create database" statements?

565


List all the types of user-defined functions?

518


How to see existing views in ms sql server?

541


What is the osql utility?

535






why would you call update statistics? : Sql server database administration

569


Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration

495


What is openrowset sql server?

518


How to list all objects in a given schema?

558


Describe in brief databases and sql server databases architecture.

524


How will you go about resolving deadlocks?

546


What is scan table/view and seek table/view when its occurs? : sql server database administration

534


What are types of subqueries?

555


How to sort query output in descending order in ms sql server?

542


Explain transaction server explicit transaction?

501