SQL Server Preview
SQL Server Preview
By Krishna Rungta
Chapter 4: SQL Server Management Studio (SSMS): What is, Install, Versions
1. What is Datatype?
2. Why use DataTypes?
3. Data type available in MS SQL
1. What is Variable?
2. Types of Variable: Local, Global
3. How to DECLARE a variable
4. Assigning a value to a VARIABLE
Chapter 8: SQL Server Table: CREATE, ALTER, DROP [T- SQL Examples]
1. What is a Table?
2. How to Create a Table
3. Alter Table
4. Delete Table
Chapter 14: SQL SERVER JOINS Tutorial: INNER, LEFT, RIGHT, OUTER
Chapter 15: Create Login, User, assign Permission: SQL Server Tutorial
1. What Is SSIS?
2. Why we use SSIS?
3. History of SIS
4. SSIS Salient Features
5. SSIS Architecture
6. SSIS Tasks Types
7. Other Important ETL tools
8. Advantages and Disadvantages of using SSIS
9. Disadvantages of SSIS
10. SSIS Best Practices
Chapter 1: What is SQL Server?
Introduction, History, Editions,
Instances
What is SQL Server?
SQL Server is a relational database management system (RDBMS) developed
by Microsoft. It is primarily designed and developed to compete with MySQL
and Oracle database.
SQL Server supports ANSI SQL, which is the standard SQL (Structured Query
Language) language. However, SQL Server comes with its own
implementation of the SQL language, T-SQL (Transact- SQL).
SQL Server Management Studio (SSMS) is the main interface tool for SQL
Server, and it supports both 32-bit and 64-bit environments.
SQL Server Enterprise: It is used in the high end, large scale and mission
Critical business. It provides High-end security, Advanced Analytics, Machine
Learning, etc.
SQL Server Standard: It is suitable for Mid-Tier Application and Data marts. It
includes basic reporting and analytics.
SQL Server Express: It is for small scale applications and free to use.
Ask your brain….!!! "Can you map, who is CLIENT and who the SERVER is?"
The most certain reply would be - "I am pretty smart in that and…. Son is a
CLIENT as he is requesting for a cup of coffee and Mother, who is CAPABLE of
preparing coffee, is a SERVER."
Here, Tom is requesting his mother, a cup of coffee. Finally, mom does some
processing with Milk, coffee, sugar and prepare coffee to serve it hot.
SQL Server: This service starts, stops, pauses, and continues an instance of
Microsoft SQL Server. Executable name is sqlservr.exe.
SQL Server Agent: It performs the role of Task Scheduler. It can be triggered
by any event or as per demand. Executable name is sqlagent.exe.
SQL Server Browser: This listens to the incoming request and connects to the
desired SQL server instance. Executable name is sqlbrowser.exe.
SQL Server Full-Text Search: This lets user running full-text queries
against Character data in SQL Tables. Executable name is
fdlauncher.exe.
SQL Server VSS Writer: This allows backup and restoration of data files when
the SQL server is not running. Executable name is sqlwriter.exe.
SQL Server Analysis Services (SSAS): Provide Data analysis, Data mining and
Machine Learning capabilities. SQL server is integrated with R and Python
language for advanced analytics.
Executable name is msmdsrv.exe.
Primary instances
Named instances.
There are two ways through which we may access the primary instance.
First, we can use the server name. Secondly, we can use its IP address.
Named instances are accessed by appending a backslash and instance name.
For example, to connect to an instance named xyx on the local server, you
should use 127.0.0.1\xyz. From SQL Server 2005 and above, you are allowed
to run up to 50 instances simultaneously on a server.
Note that even though you can have multiple instances on the same server,
only one of them must be the default instance while the rest must be
named instances. One can run all the instances concurrently, and each
instance runs independent of the other instances.
You can have different versions of SQL Server on a single machine. Each
installation works independently from the other installations.
Instances can help us reduce the costs of operating SQL Server, especially in
purchasing the SQL Server license. You can get different services from
different instances, hence no need for purchasing one license for all services.
This is the main benefit of having many SQL Server instances on a single
machine. You can use different instances for development, production and
test purposes.
When you have all services running on a single SQL Server instance, there
are high chances of having problems with the problems, especially
problems that keep on recurring. When such services are run on different
instances, you can avoid having such problems.
When different services are running on different SQL Server instances, you
can focus on securing the instance running the most sensitive service.
Summary:
SQL Server is defined as a relational database management system
(RDBMS) developed by Microsoft
T-SQL means Transact-SQL, a propriety Language by Microsoft Microsoft
and Sybase released version 1.0 in 1989
Various Editions of SQL Server are Enterprise, Standard, Web, Developer,
and Express
Critical components of SQL Server are Database Engine, SQL Server, SQL
Server Agent, SQL Server Browser, SQL Server Full- Text Search, etc.
You can run multiple instances of SQL Server the same on the same
machine.
Chapter 2: How to Download and
Install SQL Server
Pre-Requisites
Once, the download is complete; the system will initiate installing developer
edition.
Below screen show installation progress.