Solved

Can't find xp_cmdshell

Posted on 2006-06-19
6
1,030 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 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

749 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