Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Great tip for us SQL Server DBAs – Uninstall Programs from Command Line

DZone's Guide to

Great tip for us SQL Server DBAs – Uninstall Programs from Command Line

· Database Zone
Free Resource

Whether you work in SQL Server Management Studio or Visual Studio, Redgate tools integrate with your existing infrastructure, enabling you to align DevOps for your applications with DevOps for your SQL Server databases. Discover true Database DevOps, brought to you in partnership with Redgate.

It has happened to most SQL Server DBAs and Windows Administrators before:  We go to uninstall a program, on Windows Server, and when we open “Add/Remove Programs” it just sits there loading forever, while you are waiting to try to move on to the next thing.  One great way to get around this problem and be able to get back to your day job is to just go command line with the Windows Instrumentation command-line interface (WMIC).  It’s much faster than using the dreaded “Add/Remove” programs and lets us get some bragging rights when we talk to our UNIX/LINUX friends.

Below is some information on how to use WMIC.

- Open the command prompt.

- Input WMIC and press Enter.  You should see something like wmic:root\cli>

- Type in the following command and press enter: product get name

- To uninstall a program type: product where name=”Your program name” call uninstall

- When you are prompted type y to confirm the uninstall and press Enter

That’s it!  Pretty simple.

Please visit Datavail DBA Blog for more tips.

It’s easier than you think to extend DevOps practices to SQL Server with Redgate tools. Discover how to introduce true Database DevOps, brought to you in partnership with Redgate

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}