ADO.net 3.0 Sample 数据库配置问题

用Sql2005直接AttachSample中提供的NorthwindCTP.mdf是有问题的。


解决方法可以使用命令行:直接Attach Sample DataBase
EXEC sp_attach_db @dbname = N'NorthwindCTP',
    @filename1 = N'c:\NorthwindCTP.mdf';

原文地址:https://www.cnblogs.com/RuiLei/p/639193.html