2. WHAT IS MSSQL SERVER?
• Microsoft SQL Server is a relational database management system developed by Microsoft. As a database server, it
is a software product with the primary function of storing and retrieving data as requested by other software
applications, which may run either on the same computer or on another computer across a network (including the
Internet). Microsoft markets at least a dozen different editions of Microsoft SQL Server, aimed at different audiences
and for workloads ranging from small single-machine applications to large Internet-facing applications with
many concurrent users.
• a) Database Engine
• b) Integration Services
• c) Analysis Services
• d) Reporting Services
4. SOME FEATURES OF MSSQL SERVER
• Scalability: It allows distributing data in the large tables into different file groups. The server
can access the file groups simultaneously.
• CLR integration: It allows user to use the CLR features of the .NET Framework into the server
database.
• Service oriented architecture: It provides distributed, asynchronous application framework for
large scale applications.
• Web services support: It allows direct access to the data from web services by implementing
the HTTP endpoints.
• Support for data migration and analysis: It provides tools to migrate data from data sources
to a common database.
5. HOW TO LOGIN IN MSSQL SERVER?
• A login is a security principal at the scope of the SQL Server instance, and a SQL
Server instance can contain numerous databases. There are two main types of
logins; Windows authenticated login and SQL Server authenticated login. Simply
stated, a login allows you to connect to a SQL Server instance.
• Once you are connected to SQL Server instance, you will typically need access to
a particular database. To allow access to a database, this login must be mapped
to a database user. Internally within SQL Server, a login is mapped and identified
to a user using security identifier (SID)
6. HOW TO CREATE DATABASE?
1.In Object Explorer, connect to an instance of the SQL Server Database Engine and
then expand that instance.
2.Right-click Databases, and then select New Database.
3.In New Database, enter a database name.
4.To create the database by accepting all default values, select OK; otherwise,
continue with the following optional steps.
5.To change the owner name, select to select another owner.
6.You can also use sql language for that ( create databases database_name;)
7. HOW TO TAKE BACKUP IN MSSQL SERVER?
• Open SQL Server Management Studio Studio and connect to the SQL server.
• Expand Databases.
• Right-click on the database you want to back up, then select Tasks > Back up.
• On the Back Up Database window, make sure the Database field contains the name of the
database you want to back up.
• Select the Backup Type. By default, it is Full.
• Also you can choose compression for backup.
8.
9. HOW TO RESTORE A BACKUP?
• Right-click the Databases node in Object Explorer and select Restore Database.
• Select Device:, and then select the ellipses (...) to locate your backup file.
• Select Add and navigate to where your .bak file is located. Select the .bak file and then
select OK.
• Click OK to start the restore. The progress icon displays in the lower-left corner, and a
‘completed successfully’ message displays when it's done
12. MOVING BACKUP TO S3 USING SCRIPT
• function movedata{
• $source_path = "C:DB-BackupDB-Backup-DataFull-DB-Backup"
• $dest_path = "mssqldump/FullBackup"
• $source=Get-ChildItem "$source_path*"
• # For Date and Time hierarchy
• $time = get-date -UFormat %T
• $days = get-date -UFormat %d
• $month = get-date -UFormat %b
• $year = get-date -UFormat %Y
• #cd $source_path
• foreach($file in $source.Name)
• {
• aws s3 mv $source_path$file s3://$dest_path/$year/$month/$days/$time/
13. SUMMARY OF MSSQL SERVER
• SQL Server is a data engine introduced by Microsoft. It provides an environment
used to create and manage databases. It allows secure and efficient storage. It
provides other components and services that support the business intelligence
platform to generate reports and help analyze the data.
• Microsoft SQL Server is a relational database management system (RDBMS) that
supports a wide variety of transaction processing, business intelligence and
analytics applications in corporate IT environments. Microsoft SQL Server is one
of the three market-leading database technologies, along with Oracle Database
and IBM's DB2