Results 1 to 4 of 4

Thread: Execute xp_cmdshell

  1. #1
    Join Date
    Jan 2009
    Posts
    52

    Execute xp_cmdshell

    hi

    Trying to run from a client app with a user to create a base of given a sp containing the command:
    Code:

    SET @ msg = 'exec master.dbo.xp_cmdshell "net send' + RTRIM (@ Host) + '' + RTRIM (@ notification) + '"'
    but this giving me error failure of the xp_cmdshell execution so How to make a user not in master to execute . any one help ?
    Thank you.

  2. #2
    Join Date
    Aug 2007
    Posts
    1,098

    Re: Execute xp_cmdshell

    You can use Kerberos authentication with Microsoft SQL Server 2000. SQL Server 2000 supports this functionality as part of a typical Microsoft Windows 2000 or Microsoft Windows Server 2003 Active Directory domain installation. With Microsoft Windows 2000 Service Pack 3 (SP3) and Windows Server 2003, you can enable Kerberos authentication on server clusters.for more check here
    http://support.microsoft.com/kb/319723

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: Execute xp_cmdshell

    To resolve your problem,You just have to assign at the xp_cmdshell system stored procedure execution rights for the user running the SQL procedure.

    Note: this is possible depending on the security policy that wishes to place on your SQL server. Indeed, the execution of this stored procedure will allow the user to be able to run any type of control system.

    Example:
    Exec master.dbo.xp_cmdshell "FORMAT C:"

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Execute xp_cmdshell

    For the user on the procedure, it must be added to the list of users from the database without assigning privileges important.I think the most simple in your case is to use output variables to your stored procedure and make the treatment system in your software. Indeed, the entitlement to certain system stored procedures are not recommended in the various tutorials.

Similar Threads

  1. How to execute Server.Execute function in ASP.NET (C#)
    By RasMus in forum Software Development
    Replies: 3
    Last Post: 25-09-2009, 12:30 PM
  2. Can not execute .vbs files
    By RichiRich in forum Software Development
    Replies: 3
    Last Post: 10-06-2009, 12:44 PM
  3. PHP: Execute cacls.exe
    By Lambard in forum Software Development
    Replies: 2
    Last Post: 30-05-2009, 09:33 PM
  4. how to execute C#.NET program?
    By ruby1234 in forum Software Development
    Replies: 2
    Last Post: 19-11-2008, 02:24 PM
  5. Execute vbscript
    By Juan GarcĂ­a in forum Windows Server Help
    Replies: 4
    Last Post: 15-05-2008, 12:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,749,891,212.76950 seconds with 16 queries