I found the procedure in books online and it seemed to work fine apart from this. When reading the details of sp_resetstatus it suggests running sp_configure "allow updates" before to allow modifications to the system tables.
I can see that this is generally run on the master database, but would it unlock the system tables in a user database to allow me to manually put an entry in?
Main Topics
Browse All Topics





by: rboyd56Posted on 2007-04-17 at 08:33:29ID: 18925019
Sysfiles is not a dynamic table. It is an actual system table in each database. I just reproduced this and apparently the sp_add_data_file_recover_s upsect_db procedure does not add an entry in the sysfiles table for this data file. And since it is a system table you cannot modify it.
upsect_db procedure and am unaware of anyone using it.
I believe that you have recoverd a bug in SQL Server 2000. In all my years of supporting SQL Server I never heard of the sp_add_data_file_recover_s
You may need to contact Microsoft support for a way to get out of this situation.