无法看到 SQL Server 导入和导出向导中列出的数据库
(MSSQL 新手警报)我的计算机上有许多数据库,其中一些是使用 aspnet_regsql 创建的,其他是从 microsoft ASP.NET MVC 2 教程下载的(例如 http://www.asp.net/mvc/tutorials/mvc-music-store-part-3)。使用 aspnet_regsql 创建的数据库列在向导下拉列表中,但我下载的数据库没有列出。我尝试将下载的 mdf 复制到 C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA (“好”文件所在的位置)并重新启动 sql server 服务(SQL Server (SQLEXPRESS) 和 SQL Server Browser) (SQLEXPRESS),但运气不好。下载的文件也未能出现在 MySQL 迁移工具包中填充的列表中。奇怪的是,我可以在通过教程创建的 VS2010 Web 应用程序中使用“不可见”mdf。
(MSSQL newbie alert) I have a number of databases on my machine, some were created using aspnet_regsql, others downloaded from the microsoft ASP.NET MVC 2 tutorials (e.g. http://www.asp.net/mvc/tutorials/mvc-music-store-part-3). The db's created with aspnet_regsql are listed in the wizard dropdown, but the ones I downloaded are not. I tried copying the downloaded mdf's to C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA (where the "good" files are) and restarting the sql server services (both SQL Server (SQLEXPRESS) and SQL Server Browser (SQLEXPRESS), but not luck. The downloaded files also fail to appear on the list that gets populated in the MySQL Migration Toolkit. Strangely, I can used the "invisible" mdf's in the VS2010 web apps created via the tutorials.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅将 MDF 文件复制到目录是不够的。必须附上数据库。请参阅如何:将数据库文件附加到 SQL Server Express
It's not enough to just copy the MDF file to a directory. The database has to be attached. See How to: Attach a Database File to SQL Server Express