/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I have a package Microsoft SQL Server Manager which i need to make an uninstallation of!!
To uninstall i use the cmd msiexec /x {productcode} /qb!

Under the uninstallation i get the message: Error 1306. Another application has excluse access to the file c:\program file\Microsoft SQL Server\MSSQL\Log\Error\Errorlog. Please shut down all other application and try again

I have only Sql Server Manger running on my test computer. I figures out if i kill the process SQLSERVERManger in TaskManger the uninstalltion works fine!! And here is my question how do i do this the best way!!!
Is there a cmd-line i can use to kill this process??
Or should i write a vbs file which does it!!! (If so-how should it look like)???

Do you have any other suggestion to solve this please tell me
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
SQL Server holds a number of files open while it's running. You may find it worthwhile to stop all the SQL services before attempting to uninstall it...
Answered 09/18/2007 by: VBScab
Red Belt

Please log in to comment
0
Command to stop a service: [font="courier new"]net stop <servicename>
Other command to stop a service: [font="courier new"]sc.exe stop <servicename>
Answered 09/18/2007 by: FrankSpierings
Orange Senior Belt

Please log in to comment
0
Nice catch, Frank. I should have added in my reply to the OP that killing the process is a great way to completely screw up your SQL database(s).
Answered 09/18/2007 by: VBScab
Red Belt

Please log in to comment