+ Post New Thread
Results 1 to 2 of 2
Windows Thread, Automatically Uninstall SQL2005? in Technical; Is it possible to uninstall SQL2005 from a command line? I've tried googling this but can only seem to find ...
  1. #1
    Guest

    Join Date
    Jun 2009
    Posts
    3,754
    Thank Post
    1,458
    Thanked 493 Times in 376 Posts
    Rep Power
    0

    Automatically Uninstall SQL2005?

    Is it possible to uninstall SQL2005 from a command line? I've tried googling this but can only seem to find manual uninstall guides...

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,271
    Thank Post
    884
    Thanked 2,749 Times in 2,322 Posts
    Blog Entries
    11
    Rep Power
    785
    Use the original installer MSI which you can extract from the exe using the /extract switch. From the MSI you should be able to use the msiexec sql.msi /u command to uninstall it. There is a WMI way that does not require the installer also:

    Just run the below as a VBS and substitute "Personnel database'" With the exact name of the SQL Application.
    Code:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" _
        & strComputer & "\root\cimv2")
    Set colSoftware = objWMIService.ExecQuery _
        ("Select * from Win32_Product " _
            & "Where Name = 'Personnel database'")
    For Each objSoftware in colSoftware
        objSoftware.Uninstall()
    Next
    http://msdn.microsoft.com/en-us/libr...88(VS.85).aspx
    Last edited by SYNACK; 30th June 2010 at 10:54 AM.



SHARE:
+ Post New Thread

Similar Threads

  1. SIMS - SQL2005 > SQL2008 Migration Problem
    By RobFuller in forum MIS Systems
    Replies: 26
    Last Post: 24th March 2010, 11:39 PM
  2. Replies: 1
    Last Post: 17th November 2009, 02:31 PM
  3. Guide on installing Full SQL2005 and SIMS
    By mrforgetful in forum MIS Systems
    Replies: 1
    Last Post: 12th August 2009, 03:38 PM
  4. SIMS and SQL2005 on a 64bit OS
    By timbo343 in forum Windows
    Replies: 2
    Last Post: 8th May 2008, 09:52 AM
  5. Replies: 7
    Last Post: 26th October 2007, 07:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •