Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What can be used instead of trigger?

1099


What to perform pattern match with the like operator?

842


Define indexes?

999


Other than truncate statement, which other command can by-pass the trigger on the tables?

1069


How to configure and test odbc dsn settings?

1100


What are data driven subscriptions?

106


Define left outer join in sql server joins?

908


Is it ok to shrink transaction log?

939


How do you test your database? : sql server database administration

955


Using the customer, and order table in northwind database, please write a query to produce xml?

1009


What is a data collection table?

948


How can windows applications connect to sql servers via odbc?

1062


Can truncate be rolled back?

886


Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

139


What is sql language?

1030