创建用于测试的本地 SQL 数据库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6913243/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating a local SQL database for testing
提问by Johan
I am creating a VB.net application that will connect to a Microsoft SQL database. I first just want to test the application locally. What is the best/easiest way to set up the database? Do I need to create a SQL server or can I just store the database as a file? I have no idea where to begin.
我正在创建一个将连接到 Microsoft SQL 数据库的 VB.net 应用程序。我首先只想在本地测试应用程序。设置数据库的最佳/最简单的方法是什么?我需要创建一个 SQL 服务器还是我可以将数据库存储为文件?我不知道从哪里开始。
采纳答案by Adam Robinson
Assuming you're targeting SQL Server 2005 or 2008, your best solution would be to install SQL Server Express.
假设您的目标是 SQL Server 2005 或 2008,最好的解决方案是安装 SQL Server Express。
回答by Marcus Granstr?m
Use an SQL Express instance on your local machine.
在本地机器上使用 SQL Express 实例。
Look at: http://www.microsoft.com/sqlserver/en/us/editions/express.aspxto get started.
查看:http: //www.microsoft.com/sqlserver/en/us/editions/express.aspx以开始使用。