SQL Server on Cloud

1-click AWS Deployment    1-click Azure Deployment

Overview

SQL Server is a relational database management system (RDBMS) developed by Microsoft. It is widely used for storing, managing, and retrieving data in various applications and systems. SQL Server supports the Structured Query Language (SQL) for managing databases and offers a range of features for data storage, manipulation, and analysis.

Here are some key aspects and features of SQL Server:

  1. Data Storage: SQL Server allows you to create and manage databases, tables, and other database objects to store your data efficiently. It supports different data types, such as integers, strings, dates, and binary data.
  2. Data Retrieval and Manipulation: SQL Server provides a comprehensive set of SQL statements for querying and modifying data. You can use SELECT statements to retrieve data from tables, and UPDATE, INSERT, and DELETE statements to modify the data.
  3. Transaction Management: SQL Server supports transactions to ensure data integrity and consistency. You can group multiple database operations into a single transaction and ensure that they either all succeed or all fail.
  4. Security: SQL Server offers various security features to protect your data. You can define user roles and permissions to control access to the database objects. It also provides encryption capabilities for securing sensitive data.
  5. Scalability and Performance: SQL Server is designed to handle large amounts of data and support high-performance applications. It offers features like indexing, query optimization, and partitioning to enhance performance and scalability.
  6. High Availability: SQL Server provides features for ensuring high availability of your databases. It supports database mirroring, failover clustering, and Always On Availability Groups for maintaining database availability in case of hardware or software failures.
  7. Business Intelligence: SQL Server includes tools and features for business intelligence and data analysis. It supports data warehousing, reporting, and integration with other Microsoft BI tools like Power BI.
  8. Integration Services: SQL Server Integration Services (SSIS) is a powerful ETL (Extract, Transform, Load) tool that allows you to integrate data from various sources, perform transformations, and load data into SQL Server databases.
  9. Analysis Services: SQL Server Analysis Services (SSAS) enables online analytical processing (OLAP) and data mining capabilities. It allows you to create multidimensional data models and perform complex analysis on large datasets.
  10. Reporting Services: SQL Server Reporting Services (SSRS) is a reporting platform that enables the creation, management, and delivery of paginated and interactive reports.

SQL Server has different editions, including the Enterprise, Standard, and Express editions, each with varying features and limitations. It also integrates with other Microsoft technologies and development tools, making it a popular choice for building applications that require a robust and scalable database backend.

Main Editions of SQL Server

  1. Enterprise Edition: This edition provides the most comprehensive set of features and capabilities for large-scale enterprise deployments. It includes advanced features like high availability, online transaction processing (OLTP), data warehousing, advanced analytics, and business intelligence. Enterprise Edition is suitable for mission-critical applications that require maximum performance, scalability, and high availability.
  2. Standard Edition: Standard Edition is designed for smaller to medium-sized businesses. It offers a basic set of database management features, including core database engine functionality, security features, and basic business intelligence capabilities. While it lacks some of the advanced features found in the Enterprise Edition, it still provides reliable performance and scalability for most common database applications.
  3. Express Edition: Express Edition is a free, lightweight version of SQL Server. It has limitations on database size (10 GB maximum per database) and hardware utilization (limited to a single processor and 1 GB of RAM). Express Edition is suitable for small-scale applications or development and testing purposes.
  4. Developer Edition: Developer Edition has the same features as the Enterprise Edition but is licensed for development and testing purposes only. It provides all the functionalities of the Enterprise Edition, making it an excellent choice for developers and development teams to build and test applications without the cost of the Enterprise license.
  5. Web Edition: Web Edition is specifically designed for hosting websites and web applications. It offers the necessary database management features for web-based workloads at a lower cost compared to other editions. Web Edition has limitations on CPU utilization and memory usage and is licensed based on the number of cores used by the server.
  6. Business Intelligence Edition: This edition is tailored for business intelligence and data warehousing scenarios. It includes features like advanced analytics, data integration, and reporting capabilities. Business Intelligence Edition provides a cost-effective solution for organizations focused on data analysis and reporting.

Operation and SQL Server Architecture

We have two types of servers such as the OLTP server(OnLine Transactional Processing) which allows us to write transactional queries(exemple: SELECT “colonne1, colonne2 …, n” FROM “table” WHERE “condition1, condition2,. ., n)on the one hand and on the other hand we have the OLAP server (OnLine Analytical Processing) which a decisional server or a Datawarehouse. In other words, it’s thanks to the OLAP serevr it can be possible to make business intelligence(create multidimensional cubes,make report…)

Components of SQL SERVER

MS SQL Server contains several software that run as services or have graphical interfaces or are accessible through a command line. MS SQL Server is composed of 5 main services such as:

  • TSQL SERVER : It’s the database engine service that corresponds to a SQL Server instance. This component runs as a Windows service and is named as MSSQLSERVER for a default instance and MSSQLSERVER$instanceName for a named instance. An instance name is defined when installing a new instance
  • SSIS (Sql Server Integration Service) : It’s the tool for Importing and exporting data,transfering and transforming data.It includes wizards for creating ETL (Extraction Transformation Loading).
  • SSAS(Sql Server Analysis Service) : It’s the right component for making decisional projects. This component is an OLAP analysis tool and Microsoft’s Data Mining tool for building OLAP Cube.
  • SSRS (Sql Server Reporting Service) : It’s thanks to this component it possible to return our data coming from our Datawarehouse in a form report (table, chart etc …), dashboard, on various support and easily understood by third persons.This component also makes it possible to create interactive, tabular, graphical reports from XML, relational, or multidimensional data sources
  • Agent SQL :In charge of SQL Serve monitoring, this component also manages the execution of scheduled tasks and the monitoring of alerts. It runs as a Windows service and is directly linked to a SQL Server instance. It is referenced by default in the Windows Service Manager as SQL Server Agent and by SQL Server Agent (instance name) in the case of a named instance.

[] To this list of main components we can add others such as:

  • Microsoft Full Text Search : Manages the indexing of text documents and word-based searches
  • CLR : It permit you to develop stored procedures and functions using C# and VB.NET
  • Composant de Replication de données : Allows the data to be positioned closer to the users and to reduce processing times. The replication is the duplication of data from one server to another server for the purpose of spreading the workload between the two server

The tools

We can find different tools in MS SQL SERVER such as:

  • SQL Server Management Studio to Allow you performing all operations at the Database Engine level
  • SQL Server Configuration Manager to Manage All Services Related to SQL Server
  • SQL Server Profiler to track and analyze the workload of a SQL Server instance
  • The Database Engine Tuning Wizard allows for optimizing the operation of the Database Engine
  • The SqlCmd tool is used to execute approved queries, execute Command scripts, establish a dedicated administration connection (DAC)

SQL Server Create Datatabase

In SQL Server, you have to create a database first before creating a table.

Go to SQL Server Management Studio. You will see a Database.

SQL server create database 1

Right click on the databases and you will see new database. Create a new database.

SQL server create database 6 SQL server create database 2

Name your database.

For example:

Create a database “javatpoint”.

SQL server create database 3 SQL server create database 4

You can see that a database is created as “javatpoint”.

SQL server create database 5

MS SQL Server Select Database

SQL Server select database specifies your database in which you want to create your table and further operations.

SQL server select database 1

 

SQL Server Installation Prerequisites

For our SQL Server Installation steps, we will be first downloading the Developer edition

  • Click on Download now and the downloading of will start

Installing SQL Server 2017 for Microsoft

  • • Once downloading is finished, the file will be available in the downloads folder, or in any folder you have specified, as SQLServer2017-SSCI-Dev

SQL Server Installation

  • Click on the file SQLServer2017-SSCI-Dev, and you will find a window with three options: Basic, Custom, and Download Media

SQL Developer Edition Installation

  • Select Custom, as we want the Developer edition, and you will find a path for it below Media Location. You can either retain the default one or you can specify a customized path

 

MS SQL Server Installation

  • In the snapshot, the default path is retained as is in Media Location
  • Once the path is selected, click on Install and the installation begins
  • A message appears as Your SQL Server Installation will begin shortly… and you will find a pop-up screen of SQL Server Installation Center

How to Install SQL Server?

  • A pop-up window, SQL Server Installation Center, appears and it contains two columns
  • Select Installation from the left-side column, and once you select it, you will find multiple options on the right-side column

How to Install SQL Server

  • Select the first option from the right-side column, which is New SQL Server stand-alone installation or add features to an existing installation
  • Wait for it to process and you will have a window SQL Server 2017 Setup in which click on Next

 

How to Install SQL Server 2

  • Select Perform a new installation of SQL Server 2017 and click on Next
  • Select the free edition from Specify a free edition and click on Next
  • Accept the license terms
  • The display screen takes you to the features of the SQL Server 2017
  • There are many options available, but in this blog we will be selecting Database Engine Services
  • Click on Next

 

How to Install SQL Server step 3

  • The next setup is the Instance Configuration
  • Give the details in Named instance and Instance ID fields and click on Next
  • Here in the snapshot, I have given the Name instance as SPARATA and the same appears for the Instance ID

How to Install SQL Server step 4

  • The Server Configuration screen is displayed in which click on Next
  • Now on the screen, you will find two authentication modes
  • Windows authentication mode
  • Mix Mode
  • Select the Mix mode and enter the desired password and confirm the password
  • Select the user by clicking on Add Current User, and the current user has been added now
  • Click on Next
  • Once the Current User is added, the SQL Server is ready to install
  • Now, click on Next and the installation process takes place
  • Once the installation process is completed, you’re back to SQL Server Installation Center

How to Install SQL Server step 5

 

Now, you will also have to install the SQL Server Management Tools; this tool will help you connect with the database.

  • Click on Install SQL Server Management Tools and it will redirect you to Microsoft web page
  • Download the latest version of SQL Server Management Studio and you will find the downloaded file in your folder as SSMS-Setup-ENU

How to Install SQL Server step 6

  • Click on the file and install the studio
  • Once the installation is completed, search for Microsoft SQL Server Management Studio
  • The SQL Server Management Studio is launched, and you will find a pop up, Connect to Server
  • Enter the password which you had entered before with Login as sa and click on Connect

 

Microsoft SQL Server 2012 Express is a powerful and reliable free data management system that delivers a rich and reliable data store for lightweight Web Sites and desktop applications. Microsoft SQL Server 2012 is a relational database management system (RDBMS) designed for the enterprise environment. Like its predecessors, SQL Server 2012 comprises a set of programming extensions to enhance the Structured Query Language (SQL), a standard interactive and programming language for getting information from and updating a database.SQL Server 2012’s new features and enhancements include

Always On SQL Server Fail-over Cluster Instances and Availability Groups which provides a set of options to improve database availability, Contained Databases which simplify the moving of databases between instances, new and modified Dynamic Management Views and Functions, programmability enhancements including new spatial features,metadata discovery, sequence objects and the THROW statement, performance enhancements such as Column Store Indexes as well as improvements to OnLine and partition level operations and security enhancements including provisioning during setup, new permissions, improved role management, and default schema assignment for groups.

 

Features

AWS

Azure

Videos

SQL Server on Cloud

Related Posts