Lab Manual 01 PDF
Lab Manual 01 PDF
Lab Instructor:
Ms. Hira Kanwal
Student Name
Student Roll #
Department
Batch/Year/Section
Marks Signature
i
Lab Manual # 1 Introduction to Databases
1.1. Objective
After this lab you would be able to understand:
1. Databases
2. What is SQL Server
3. T-SQL & PL-SQL
4. Brief History of SQL
5. Installation of SQL Server
6. SQL Server Instances
7. Introduction to SQL Server Graphical User Interface (GUI)
1.2. Databases
A database is a collection of information that is organized so that it can be easily accessed,
managed and updated.
In a database, data is organized into rows, columns and tables, and it is indexed to make it
easier to find relevant information. Relevant information is provided by managing relation
between different tables, this type of database is known as Relational Database. Data gets
updated, expanded and deleted as new information is added.
There are many popular RDBMS (Relational Database Management Systems) available to
work with:
SQL Server is a Microsoft product used to manage and store information. Technically, SQL
Server is a “Relational Database Management System” (RDBMS).
SQL is a language to operate databases (or we can say SQL is a query language); it includes
database creation, deletion, fetching rows, modifying rows, etc. It is an international language
recognized by ANSI (American National Standards Institute) and ISO (International
Organization for standardization). To be ANSI verified, all implemetations of SQL must
support same major queries (i.e., select, insert, update, delete, where).
SQL stands for Structured Query Language. This is the language used to manage and
administer the database server.
Also, they are using different dialects such as; MS SQL Server use T-SQL, Oracle use
KFUEIT Department of CS/IT
2
Lab Manual # 1 Introduction to Databases
T- SQL (Transact - SQL) is the Microsoft’s version / implementation of SQL. Transact SQL
is a declarative language. It tells the database engine what it wants, and the database engine
handles the processing.
While, PL- SQL (Procedural Language - SQL) is the Oracle’s version / implementation of
SQL.
Note: You can run multiple instances of the Database Engine on a computer. One instance
can be the default instance. The default instance has no name. If a connection request
specifies only the name of the computer, the connection is made to the default instance. A
named instance is one where you specify an instance name when installing the instance. A
connection request must specify both the computer name and instance name in order to
connect to the instance. There is no requirement to install a default instance; all of the
1. .
2. (local)
3. Name of your computer
After successful connection the management studio will open.
1.10.1. Can we create multiple instances of SQL Server on the same machine?
Elaborate.
1.10.2. Differentiate b/w Procedural Language SQL and Non Procedural Language SQL.