Solved

Can't find xp_cmdshell

Posted on 2006-06-19
6
1,025 Views
Last Modified: 2012-08-14
I am missing xp_cmdshell from our master database, how can I restore it?  Thank you.
0
Comment
Question by:nkuo
  • 3
  • 3
6 Comments
 
LVL 13

Accepted Solution

by:
MikeWalsh earned 250 total points
ID: 16938940
the dll is called xplog70.dll

search your machine for that to make sure it exists and exists in your sqlserver binn directory (should be where all of hte other dlls are.. if it is in the wrong path, the below won't work and you will have to put it in the right path.. by default they all go to: C:\Program Files\Microsoft SQL Server\Mssql\Binn )


sp_addextendedproc 'xp_cmdshell', 'xplog70.dll'


A word here first.. are you sure it is missing? do you have SA level access, have you looked for it under extended stored procedures in master, or are you just receiving an error when running it?
0
 

Author Comment

by:nkuo
ID: 16939250
I looked everywhere.  It is also a webserver so it may have be disabled on purpose.  I need it back to run some export jobs.  And yes, I did connect as SA as well.  
0
 
LVL 13

Expert Comment

by:MikeWalsh
ID: 16939297
ok. then do what I suggested.

But be careful because it may have been removed for security concerns, and it does open up security problems. Sounds like you are aware of that and will take steps to rectify that..

just follow my process to add it above after verifying the .dll exist.s

If the .dll is missing, you may have to get it off of an installation cd.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:nkuo
ID: 16939845
Thank you very much.  
0
 
LVL 13

Expert Comment

by:MikeWalsh
ID: 16941227
no problem. did it work for you?
0
 

Author Comment

by:nkuo
ID: 16942425
Hi Mike, haven't tried it yet but thought about what you said, since I have to put the data in a temp table anyway, I'm going to DTS the data to another server (xp_cmdshell still there) and run the sp from there.  Thanks again for the info, you definitely get the points for sp_addextendedproc.  Thanks again.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question