Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a screwy database problem. As you can see in the image provided here that there are two entries for the "name" property in the "sys.database_files" table that contain the suffixes .ldf and .mdf (CrucibleTARS.mdf and CrucibleTARS_log.ldf) where all of the other database entries do not (Crucible and Crucible_log). Does anyone know how to update the value in the underlying system tables for these fields? The fallout from this is that for the CrucibleTARS database I am unable to shrink the log file.

Thanks for your help in advance,

CTBlankenship

What I have tried:

Since these queries appeared to display the results that are a value from the sys.database_files, I wrote a quick update to change the value of the [name] property from "CrucibleTARS.mdf" to simply "CrucibleTARS". Come to find out these aren't tables but are views of the underlying system tables. So, the attempted UPDATE command failed.
Posted
Updated 30-Oct-19 6:38am

See this CodeProject tip: Rename a Database and its MDF and LDF files in SQL Server[^]

Another option might be to use a recovery tool: sql-recovery-software[^]
But this is only a wild guess ...
 
Share this answer
 
v2
Comments
MadMyche 30-Oct-19 10:49am    
My thoughts exactly
No answer for your question, but how did you do that screen capture with the jaggies? :)
 
Share this answer
 
Comments
Charles T. Blankenship 30-Oct-19 12:43pm    
SnagIt by TechSmith ... it's a great program ... used it for years to create my user docs ... https://www.techsmith.com/. There is a free version but I bought it myself.
RickZeeland 30-Oct-19 14:05pm    
It's probably one of these: https://www.slant.co/topics/4040/~screen-capture-tools-for-windows
Charles T. Blankenship 30-Oct-19 15:23pm    
SnagIt Editor from TechSmith https://www.techsmith.com/screen-capture.html

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900