How to Execute an Operating System Command From Within SQL
Server ?

Answer Posted / guest

The xp_cmdshell extended store procedure makes it possible
to execute operating system commands from within SQL
Server.
Example:

EXEC Master..xp_cmdshell 'Dir c:\'

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of sql server?

698


How do you size a resultset?

676


What is Replication?

808


Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

2227


Explain what is the function of sql server agent windows service?

702






What is default constraint in ms sql server?

712


Why use “in” clause in sql server?

725


What is the difference between upgrade and migration in sql server?

760


What is 5nf in normalization form?

729


What are the difference between primary keys and foreign keys?

697


Please explain go command in sql server?

776


Disadvantages of the indexes?

752


What is BLOCK statements in SQL?

990


what kind of lan types do you know? : Sql server database administration

702


How many types of the database links?

787