From the course: SQL Server 2008 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Creating a SQL Server database

Creating a SQL Server database - SQL Server Tutorial

From the course: SQL Server 2008 Essential Training

Start my 1-month free trial

Creating a SQL Server database

To create a database, we are really defining two different things. The idea of what our database is, our tables, our columns, our keys, and our relationships, but to do that, we first need to create the other piece. the more boring mundane piece. See the real deal is that all of our tables and all of the data in those tables that we want to store will end up being stored on files on the hard drive. So we need to say what those files are. We need to say where is this database going to be created. So I have opened up SQL Server Management Studio. I'm going to right-click my Databases folder and say New Database, and a new window will appear that's going to ask me first off to give this thing a name. I just have to name this database. So I'm going call it TwoTreesTest. I am pretending this is a test database for the Two Trees organization. I am expecting to end up deleting this. So I'm not really too bothered about how it's created. I can see that down below it, it says this will have…

Contents