![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? |
#3
| |||
| |||
|
|
Hi, I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? Thank you. |
#4
| |||
| |||
|
|
Hi, I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? Thank you. |
#5
| |||
| |||
|
|
pearl... (AT) hotmail (DOT) com wrote: I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? Assuming this is MS SQL (I don't know what extensions Oracle uses), you need to detach the database from SQL. Can be done via GUI or CHUI. For a GUI, use Enterprise Manager (SQL 2000) or Management Studio (2005). |
#6
| |||
| |||
|
|
Hi, I have some database files ... on the server. When I try to delete them. . . Since I am new to the environment I don't know where the files come from and where they might be used. snip |
#7
| |||
| |||
|
|
Hi, I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? Thank you. |
#8
| |||
| |||
|
|
On Oct 17, 1:36 pm, pearl... (AT) hotmail (DOT) com wrote:> Hi, I have some database files ... on the server. When I try to delete them. . . Since I am new to the environment I don't know where the files come from and where they might be used. snip Let's see, you have files that you don't know where they come from, you don't know where they might be used, and yet you are still trying to delete them . . . . |
#9
| |||
| |||
|
|
pearl... (AT) hotmail (DOT) com wrote: Hi, I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? Thank you. If you were running on Linux, the operating system would dutifully obey your command. The files would remain accessible to existing processes which already had handles. After the last handle on the file(s) has been released, the file(s) would no longer exist. Be glad that the OS that you are using has training wheels. There are utilities from SysInternals (since acquired by Microsoft) for locating processes holding handles on files. Handle.exe would be one, process monitor is another. try here:http://www.microsoft.com/technet/sys...andthreadsutil... You have backups of the databases of interest on this server, right? hth. -bdbafh |
#10
| |||
| |||
|
|
On Oct 17, 3:02 pm, Ed Murphy <emurph... (AT) socal (DOT) rr.com> wrote: pearl... (AT) hotmail (DOT) com wrote: I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may be in use." appears. Since I am new to the environment I don't know where the files come from and where they might be used. Can anybody tell me what to do to delete those files? Assuming this is MS SQL (I don't know what extensions Oracle uses), you need to detach the database from SQL. Can be done via GUI or CHUI. For a GUI, use Enterprise Manager (SQL 2000) or Management Studio (2005). Thanks Ed, but what do I need to do in Enterprise Manager? How can I delete the file from there? |
![]() |
| Thread Tools | |
| Display Modes | |
| |