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
What can be used instead of trigger?
What to perform pattern match with the like operator?
Define indexes?
Other than truncate statement, which other command can by-pass the trigger on the tables?
How to configure and test odbc dsn settings?
What are data driven subscriptions?
Define left outer join in sql server joins?
Is it ok to shrink transaction log?
How do you test your database? : sql server database administration
Using the customer, and order table in northwind database, please write a query to produce xml?
What is a data collection table?
How can windows applications connect to sql servers via odbc?
Can truncate be rolled back?
Can You Use A Stored Procedure To Provide Data To An Ssrs Report?
What is sql language?