How to Execute an Operating System Command From Within SQL
Server ?
Answer Posted / sanjeev kumar
If your server is not configured for "xp_cmdshell" command
then at first you need to reconfigure for that. To
reconfigure, execute the following:-
sp_CONFIGURE 'xp_cmdshell', 1
GO
RECONFIGURE
GO
Then execute the following:-
EXEC master.dbo.xp_cmdshell 'Dir c:\'
Regards
Sanjeev kumar
Contact If your problem are still not solved.
thanks
skdeveloper0@gmail.com
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to find related tables in sql server?
Can you explain what are various ways to enhance the ssrs report?
What is the difference between mysql and mysqli?
How do you clear a log file?
Explain Normalization and DE normalization
How to use clusters?
What is not null constraint?
Why we need sql server?
List the advantages of using stored procedures?
What is difference between commit and rollback when used in transactions?
Can you move the resources after pausing the node? : sql server database administration
Do you know what are the reporting services components?
IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do
how can you attach more than 20 ldf files in sql server
What is provisioning, billing and metering, and connection routing concepts in the service layer?