VS 2010 Express损坏了Sql Server Express 2008数据库 [英] VS 2010 Express corrupts Sql Server Express 2008 database
问题描述
在VS 2010 Express中,当我使用数据库浏览器添加新的数据库连接时,该数据库处于可疑模式".
In VS 2010 Express, when I add a new database connection using Database Explorer, the database is being put into 'suspect mode'.
以下是步骤:
1.使用Sql Server管理控制台(SSMS)创建带有表的数据库
1. Create a database, with tables, using Sql Server Mgmt Console (SSMS)
2.在VS中打开新的解决方案/项目
2. Open new solution/project in VS
3.使用数据库资源管理器,将新连接添加到新数据库.测试连接报告成功".从数据库浏览器中,我可以看到数据库&桌子-一切都很好.
3. Using Database Explorer, add new connection to the new database. Test connection reports 'succeeded'. From the Database Explorer I can see the database & tables - so all is good.
4.使用SSMS,现在显示的新数据库中没有+号和&我看不到桌子.尝试使用SSMS访问数据库会导致错误3707,该错误表明数据库处于可疑"模式.
4. Using SSMS, the new database is now shown without the + sign & I cannot see the tables. Attempts to access the database with SSMS result in Error 3707 which says the database is in 'suspect' mode.
5.如果我删除数据库并从备份还原,那么SSMS和VS 2010都很高兴.
5. If I delete the database and restore from backup then both SSMS and VS 2010 are happy.
任何帮助将不胜感激.我已经在网上搜索了&这个论坛,但对出什么问题一无所知.
Any help will be very much appreciated. I have searched the web & this forum, but without any clue as to what is going wrong.
TIA,乔
推荐答案
hi
您可以修复
这篇关于VS 2010 Express损坏了Sql Server Express 2008数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!