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
What is ms sql server triggers?
Write the SQL query to drop, truncate and delete table.
What is the importance of a recovery model?
What are cursors in ms sql server?
What is inner join? Explain with an example?
What is RMS migrations?
What is single-user mode and what are the steps you should follow to start sql server in single-user mode?
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
What is nonclustered index with included columns ?
what does the automatic recovery do? : Sql server administration
What is temporary table in sql server? Why we use temp table?
What is sql server 2000 work load governor?
Do you know the different ddl commands in sql?
What are 3 ways to get a count of the number of records in a table?
When would you use a before or after trigger?