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 are the steps to take to improve performance of a poor performing query? : sql server database administration
How to get @@error and @@rowcount at the same time?
you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration
Is sql different from sql server?
What is the difference between functions and scalar functions?
what are constraints? : Sql server database administration
Can select statements be used on views in ms sql server?
How to copy data from one table to another table?
What is the Disadvantage of indexed sequential file.
What security features are available for stored procedure?
what is an extended stored procedure? : Sql server database administration
Which language rdl files made of?
What is data modeling and Reterminal integrity?
hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.
What does the not null constraint do?