简体   繁体   中英

how to create a database in MS Visual Studio 2013?

I have tried and searched a lot on internet but found no way of creating a database in Ms Visual Studio 2013.

I am learning basics in c#. I have SQL Server 2008 at bakend.

If you not only want to create a database, but plan longer development using Visual Studio, then create new project of database type (File -> New Project, then select Templates, Other Languages, SQL Server, SQL Server Database Project). You will be able to use favorite version control system, make database releases in form of DACPAC and BACPAC packages, easily create upgrade scripts, do schema compare and so on. This is included in Visual Studio 2013 and available as separate free addon for Visual Studio 2010 and 2012 (so called SQL Server Data Tools ). Definitely take your time to acquaint with it.

This is new, developer-oriented way of professional database development. SQL Server Management Studio is more administrative tool than a full blown developer tool.

In VS 2013 go to New Project > Installed > Templates > Other Languages > SQL Server. There you can create a new Database Project and use that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM