![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have a couple of databases on 2 different MS SQL 2005 Express servers that every week or so will be unaccessible. When we try to access the database from SQL Management Studio we get an error 945. If we run the code below is says the database is suspect. If we run "alter database [database name] set offline" then "alter database [database name] set online" the database will work again for a week or so. If we run DBCC CHECKDB ('DB Name') WITH NO_INFOMSGS there are no errors with the database reported. Any ideas of what is going on? SELECT DATABASEPROPERTYEX('Database Name', 'Status') DatabaseStatus_DATABASEPROPERTYEX GO SELECT state_desc DatabaseStatus_sysDatabase FROM sys.databases WHERE name = 'Database Name' |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
The error logs show that the LDF file can't be accessed because it is being used by another process (event id: 17207). This process is no longer using the file by the time we can check out the problem. The event id always appears at night. We are now having the antivirus avoid scanning the LDF and MDF files and also we are turning off the Backup Exec software for now with the Data folder even though the errors normally appear before the backup even starts. Finally we are setting the problem database Auto Close option to False. I will post the results. It will probably take more than a week to know if the issue is actually fixed. |
#5
| |||
| |||
|
|
The error logs show that the LDF file can't be accessed because it is being used by another process (event id: 17207). This process is no longer using the file by the time we can check out the problem. The event id always appears at night. We are now having the antivirus avoid scanning the LDF and MDF files and also we are turning off the Backup Exec software for now with the Data folder even though the errors normally appear before the backup even starts. Finally we are setting the problem database Auto Close option to False. I will post the results. It will probably take more than a week to know if the issue is actually fixed. |
#6
| |||
| |||
|
|
The error logs show that the LDF file can't be accessed because it is being used by another process (event id: 17207). This process is no longer using the file by the time we can check out the problem. The event id always appears at night. We are now having the antivirus avoid scanning the LDF and MDF files and also we are turning off the |
|
Backup Exec software for now with the Data folder even though the errors normally appear before the backup even starts. Finally we are setting the problem database Auto Close option to False. I will post the results. It will probably take more than a week to know if the issue is actually fixed. |
#7
| |||
| |||
|
|
You could install ProcessMonitor on the system with appropriate filtering for LDF and MDF in "Path" field and probably file operations (open, close). *That should give you an idea who is accessing those files. Kind regards robert |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |