I did not have the SQL Server Management Studio loaded anywhere to my knowledge, and did not know what was the best thing to do. So, I have installed SQL server 2008 standard edition, and now I can get to the Management Studio. Even though my databases were all created using SQL 2005 compact edition (rather than 2008), I AM able to connect to a database on a non-corrupted file and see the tables, etc.
But when I try to do the same thing with my "problem" file, I get this error: The database file may be corrupted . Run the repair utility to check the database file.
However, I cannot find where or how to run the "repair utility". Any suggestions?
BTW, I also do not see how or where I can simply "right click" the sdf db. Specifically, where would I go to do that?
Main Topics
Browse All Topics





by: efatihanPosted on 2009-10-08 at 00:52:39ID: 25522964
Open the sdf file through SQL Server Management Studio. Then right click the sdf db. From Properties you will see the "Shrink and Repair". This works as is expected.