Running a simple SQLCMD script file, which simply detaches a database on SQL2005, is locking the file system objects so that I cannot copy them to another server or re-attach them. I've looked at the processes running on the server and the cmd.exe object opened, ran, then closed. I cannot restart this 24-7 production e-commerce server or any of the sql server services. Any ideas would be appreciated.
asked Mar 17, 2010 at 04:02 PM in Default
Try adding :QUIT to the end of your batch
answered Mar 18, 2010 at 12:31 AM