[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Can't find xp_cmdshell

Posted on 2006-06-19
6
Medium Priority
?
1,049 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 13

Accepted Solution

by:
MikeWalsh earned 1000 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
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.

649 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