MS SQL Server 2012 How-to - Creating Database Objects in MS SQL Server 2012 - Part 2/5

Published: 01 February 2017
on channel: baghul
157
1

https://sqlserver2014tutorial.com/

In this MS SQL Server 2012 training video series, we cover database objects and how to create them. A database object is any defined object in a database that is used to store or reference data. Some examples of database objects include tables, views, clusters, sequences, indexes, and synonyms.

You can create a database or object through Microsoft SQL Server Management Studio (SSMS), Transact SQL (TSQL) or the Template Browser.

In this part (2 of 5), we look at and demonstrate creating a database using Transact SQL (TSQL) using the ‘CREATE DATABASE’ command. Syntax for this method:
CREATE DATABASE [name of database] ON
LOG ON
o NAME – Logical name for data file
o FILENAME – Physical location for data file
o SIZE – Initial size in megabytes (MB)
o MAXSIZE – Maximum file size in MB
o FILEGROWTH – Filegrowth parameter using percent or MB
ALTER DATABASE – Modifies a database, files or filegroup associated with a database
sp_helpdb – Gives basic information on database
DROP DATABASE – Deletes a database

In the second part of this video, we look at creating a table in SQL Server 2012. Just like the Database Object, the Table Object can be created using SSMS, TSQL or Template Browser.

A Table is made up of Fields / Columns (Info like SSN, CustomerID) and Records / Rows (complete instance of one item or specific customer).

Please subscribe to our channel and like our videos! We have many training videos on MS SQL 2012

Visit our other sites:
https://www.learningcomputer.com
https://datatechnologyllc.com
https://sqlserver2014tutorial.com/


On this page of the site you can watch the video online MS SQL Server 2012 How-to - Creating Database Objects in MS SQL Server 2012 - Part 2/5 with a duration of hours minute second in good quality, which was uploaded by the user baghul 01 February 2017, share the link with friends and acquaintances, this video has already been watched 157 times on youtube and it was liked by 1 viewers. Enjoy your viewing!