开发者

How do I create my own database instead of "Northwind sample database" MSDN mentions?

Every other SQL Server walkthrough says I have to install "the开发者_JAVA百科 Northwind sample database" and then connect to it. I find it ridiculous - I'd rather create a new empty database and then populate it.

What's so magic in that database? Why can't I create my own database? How do I create my own database instead of using "the Northwind sample database"?


Of course you can use your own database if you want. You'll just need to adapt the walkthrough to use your schema rather than the Northwind one.

There's nothing magic about Northwind, it's just a common and readily available database so that the focus of whatever is referencing it doesn't get tied up in designing a database to use and populating it with data.

You can find a walkthrough for creating your own database here.


What's so magic in that database?

There is no magic. It just a sample database with table definitions and some data.

Why can't I create my own database?

You can.

How do I create my own database instead of using "the Northwind sample database"?

You can use SQL Server Management Studio.

Connect to a server. Right-click on the Databases node and select New Database....

Or you can write a create database command that you can run in SQL Server Management Studio query window.

This will create a database called TestDB

create database TestDB
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜