0

I created a project a while ago and transferred it to my other computer, and now it's stopped working. I can't manage to fill the grid with the data from the .mdf.

I have struggled a while with this problem and I can't manage to solve it. I would appreciate if someone here could download the .rar and help me solve this problem.

http://www.filefactory.com/file/3wabxfsyxign/n/CDapplikation_uppgift_rar

4

1 回答 1

3

.mdfSQL Server数据文件;要使用这些文件,您必须安装 SQL Server 的某个版本(Compact Edition 除外)

因此,要获取此数据:

  • 检查您安装的 SQL Server 版本
  • 启动管理工具,例如 SQL Server Management Studio(可能是 Express 版本,您可以在 Google 或 Bing 上搜索并从 Microsoft 免费下载)
  • 以逻辑名称将.mdf文件附加到 SQL Server,以便您可以使用它
  • 现在您可以使用原始 ADO.NET 或实体框架或您希望使用的任何其他数据访问技术来访问它
于 2013-05-12T18:51:28.120 回答