Explain sp_configure commands, set commands?
Answers were Sorted based on User's Feedback
Answer / senthil ku,mar
Use sp_configure to display or change server-level
settings. To change database-level settings, use ALTER
DATABASE. To change settings that affect only the current
user session, use the SET statement
| Is This Answer Correct ? | 7 Yes | 0 No |
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 |
Answer / bhaskar
Use sp_configure to display or change server-level
settings. To change database-level settings, use ALTER
DATABASE. To change settings that affect only the current
user session, use the SET statement.
E.g.
sp_CONFIGURE ’show advanced’, 0
GO
RECONFIGURE
GO
sp_CONFIGURE
GO
You can run following command and check advance global
configuration settings.
sp_CONFIGURE ’show advanced’, 1
GO
RECONFIGURE
GO
sp_CONFIGURE
GO
| Is This Answer Correct ? | 1 Yes | 0 No |
what is the disadvantage of SQL Loder?
How can delete duplicate records in cte in sql server?
What do you mean by a Composite primary key?
What are different types of collation sensitivity?
List some of the rules that apply to creating and using a ‘view’
Which tcp/ip port does the sql server run on? How can it be changed?
How and why use sql server?
In which situation you use Self joins?
1 Answers CarrizalSoft Technologies, HP, TCS,
What is dataset and its uses
Can you get second highest salary from the table?
Name three of the features managed by the surface area configuration tool? : sql server security
Mention the differences between substr and charindex in sql server.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)