From the course: SQL Server 2008 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating a SQL Server database - SQL Server Tutorial
From the course: SQL Server 2008 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Planning your database9m 39s
-
(Locked)
Creating a SQL Server database4m 7s
-
(Locked)
Creating tables7m 50s
-
Data types in SQL Server12m 25s
-
(Locked)
Defining keys8m 9s
-
(Locked)
Creating default values4m 39s
-
(Locked)
Creating check constraints2m 25s
-
(Locked)
Creating unique constraints4m 34s
-
Introduction to relationships and foreign keys9m 51s
-
(Locked)
Creating relationships in SQL Server Management Studio8m 14s
-
(Locked)
Database normalization11m 47s
-
(Locked)
Creating computed columns3m 10s
-
-
-
-
-
-
-
-
-
-
-
-