Visual Studio 2010和SQL Server管理工作室2008
问题描述:
我是VB的新手。我已经下载了一个项目并希望运行它。有一个.mdf我想附加并使用本地服务器运行项目。有人可以帮忙。
在PHP中导入数据库并使用Internet Explorer运行本地主机。
我尝试了什么:
我确实附上了.mdf文件,但没有提示如何运行它
I am new in VB. I have downloaded a project and want to run it. There is a .mdf I want to attach and run the project using local server. can someone please help.
In PHP you import the database and run your localhost using Internet explorer.
What I have tried:
I did attach the .mdf file but no clue how to run it
答
对于MS,Sql server逻辑是一样的。请阅读:附加数据库| Microsoft Docs [ ^ ]
换句话说,你必须:
1)安装MS Sql Server [ ^ ]
2)安装MS Sql Server Management Studio [ ^ ](管理ms sql server及其数据库的gui)
3)附加/导入数据库
当MS Sql server实例可用(并且已经运行),您可以使用MS Visual Studio数据库。
For MS Sql server logic is the same. Please, read this: Attach a Database | Microsoft Docs[^]
In other words, you have to:
1) install MS Sql Server[^]
2) install MS Sql Server Management Studio[^] (a gui to manage ms sql server and its databases)
3) attach/import database
When MS Sql server instance is available (and has been run) you can use database with MS Visual Studio.