DBMS Lab 2 SQL Server Installation 2
DBMS Lab 2 SQL Server Installation 2
(Part 1)
MS SQL Server Installation &
Operation
Enterprise (64- The premium offering, SQL Server 2014 Enterprise edition
bit and 32-bit) delivers comprehensive high-end datacenter capabilities with
blazing-fast performance, unlimited virtualization, and end-to-
end business intelligence - enabling high service levels for
mission-critical workloads and end user access to data insights.
Standard (64-bit SQL Server 2014 Standard edition delivers basic data
and 32-bit) management and business intelligence database for
departments and small organizations to run their applications
and supports common development tools for on-premise and
cloud - enabling effective database management with minimal
IT resources.
Breadth editions of SQL Server are engineered for specific customer scenarios and are
offered FREE or at a very nominal cost. The following table describes the breadth
editions of SQL Server.
Developer SQL Server 2014 Developer edition lets developers build any
(64-bit and kind of application on top of SQL Server. It includes all the
32-bit) functionality of Enterprise edition, but is licensed for use as a
development and test system, not as a production server. SQL
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
Server Developer is an ideal choice for people who build and
test applications.
Express (64- SQL Server 2014 Express edition is the entry-level, free database
bit and 32-bit) and is ideal for learning and building desktop and small server
editions data-driven applications. It is the best choice for independent
software vendors, developers, and hobbyists building client
applications. If you need more advanced database features, SQL
Server Express can be seamlessly upgraded to other higher end
versions of SQL Server. SQL Server Express LocalDB, a
lightweight version of Express that has all of its programmability
features, yet runs in user mode and has a fast, zero-
configuration installation and a short list of prerequisites.
Server
components Description
SQL Server SQL Server Database Engine includes the Database Engine, the
Database core service for storing, processing, and securing data,
Engine replication, full-text search, tools for managing relational and
XML data, and the Data Quality Services (DQS) server.
Analysis Analysis Services includes the tools for creating and managing
Services online analytical processing (OLAP) and data mining
applications.
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
Server
components Description
Master Data Master Data Services (MDS) is the SQL Server solution for
Services master data management. MDS can be configured to manage
any domain (products, customers, accounts) and includes
hierarchies, granular security, transactions, data versioning,
and business rules, as well as an Add-in for Excel that can be
used to manage data.
Management
tools Description
Database Engine Database Engine Tuning Advisor helps create optimal sets of
Tuning Advisor indexes, indexed views, and partitions.
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
Management
tools Description
SQL Server Data SQL Server Data Tools provides an IDE for building solutions
Tools for the Business Intelligence components: Analysis Services,
Reporting Services, and Integration Services.
To install Microsoft SQL Server 2014 Express Edition, follow these steps:
Run the setup file through the administrative account. The Microsoft SQL Server 2014
Installation Center will begin.
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
2. In this Feature Selection Wizard Select all of the features and click the Next button.
3. In this Instance Configuration select the Default Instance option and click Next button.
4. Click Next.
5. In this Database Engine Configuration select the Windows Authentication Mode and
click Next button.
6. Installation will progress and setup will complete installation automatically. Just wait and
watch.
7. From the Setup Complete window, click Close.
Now go to the Start menu and Search SQL Server Management Studio. A new window will be
opened. Connect to the server.
Now place the following sample code in the query window, run it and see the output:
On the left side you will see databases named master etc.
On clicking any of the database, you’ll see default tables in that database. You can also right
click on any of the table and select ‘return all rows’ to see the entire values in the table.
But you have to create your own database with your own name.
Now create the table in the above created database using the CREATE TABLE command:
Syntax:
CREATE
TABLE table_name (
column_name1 data_type(size),
column_name2 data_type(size),
column_name3 data_type(size),
....
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
); --// CREATE TABLE is the keyword.
SELECT *
FROM Student;
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
SQL Server Data Types
String types:
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION
bigint Allows whole numbers between -9,223,372,036,854,775,808 and 8 bytes
9,223,372,036,854,775,807
Date types:
timestamp Stores a unique number that gets updated every time a row gets created or modified.
The timestamp value is based upon an internal clock and does not correspond to real
time. Each table may have only one timestamp variable
sql_variant Stores up to 8,000 bytes of data of various data types, except text, ntext, and
timestamp
Lab Instructor: Engr. Shahid Ali Bhutta MS SQL SERVER 2014 INSTLLATION & OPERATION