Topics In This Module.
- Responsibilities of Database Administrator
- Types of DBAs
- History of SQL Server
- Editions of SQL Server
- Tools of SQL Server
- Differences between Standard and Enterprise editions
- Instances types in SQL Server
- SQL Server Services
Responsibilities Of A Database Administration:
- Managing the databases in an server\instance.
- Installing SQL server and Creating, Managing instances.
- Patching the SQL server instance, Upgrading and downgrading the SQL server Edition.
- Making sure that all the databases in an instance are Backed up successfully if any failed trigger them.
- Maintaining the restoring point with clients.
- Creating and Managing databases.
- Re-Built indexes.
- Maintain databases statics timely manner as per requirement.
- Maintain the Database health as green and online.
- Creating and managing the Maintenance jobs.
- SQL Server Monitoring and Working on SQL server alerts if any.
- Picking the task in DBA bucket and working on them.
Types of DBAs
There are three types of Database Administrators they are:
- Developer DBA - Develops SQL code, and also maintain SSRS, SSIS and also maintain databases. Simply said L2 and L3 Activities.
- Apps DBA - Create Databases and also in parallelly maintain applications For Example: A share point application and a Share point databases are also maintained by Apps DBA, Simply Said L1 and L2 Activities.
- Core MSSQL DBA - We are core SQL DBA's, SQL Server services maintaining, Installing all the required services, not all configuration is needed.
History of SQL Server
Sybase SQL Server -> SQL Server 6.0 -> SQL Server 6.5 ->
<- SQL server 2005 <- SQL Server 2000 <- SQL Server 7.0 <-
-> SQL Server 2008 -> SQL Server 2008R2 -> SQL Server 2012 ->
<- SQL Server 2017 <- SQL Server 2016 <- SQL Server 2014 <-
-> SQL Server 2019
Editions of SQL Server
There are different types of edition they are:
- Evaluation Edition: Free for 180 days, same as enterprise edition.
- Express Edition: Free but there is no Agent services, no jobs can be created in this edition, 10GB is the Maximum Database size, can allocate only 1Gb RAM.
- Developer Edition: Free used For Analysis purposes extended features to test by developers, Only 4 CPUS can be allocated.
- Workgroup Edition.
- Web Edition.
- Library Edition.
- Mobile Edition.
- Standard Edition: Licensed, Used by Prod, UAT, Pre-Prod Environments.
- Enterprise Edition: Licensed, Used by Prod, UAT, Pre-Prod Environments.
Tools of SQL Server
The different client tools/components used by SQL Server are:
- SSMS - SQL Server Management Studio.
- BDC(Big Data Cluster)
- SCM (SQL Server Configuration manager).
- SSAC(SQL Server Surface Area Configuration)
- DTA(Data Tuning Advisor)
- Azure Data Studio: Similar to visual studio, for developing.
- SQL Profiler: To capture the data.
- BCP(Bulk Copy Programming): to copy bulk data from DB to DB we use this BCP utility.
- SQLCMD Utility: This is a command line utility, used to connect to database, start the services .. etc
- SQL Server Data Tools: These are the tools used for Analysis, Integration, and reporting services.
SCM (SQL Server Configuration manager): This is introduced from SQL Server 2005, there are many ways to start, stop, manage services one of the way is using SCM. Using SCM we can change the protocols, change the port.
SSAC(SQL Server Surface Area Configuration): This is deleted from SQL Server 2005, Usually used to enable by default features which are disable like DB mail
SQL Server Data Tools:
SQL Profiler:
The are different Protocols they are:
Shared Memory: We use this when server and client are on the same machine
Named pipes: We use this when server and client are on same LAN
TCP/IP: We Use this when server and client are on different networks, uses WAN.
VIA: Virtual interface Adapter.
In SQL Server there are different port types they are:
Static port: will be same always, default is 1433
Dynamic: Will be changing when ever services are restarted.
Differences between Standard and Enterprise editions
All features present in standard edition are present in Enterprise edition also, some of the other features in enterprise are:
- High Availability features (from 2016 we can configure HA in standard as well).
- More RAM, and CPU can be allocated to SQL Server in this.
- Online Index Re-built is here.
- Resource Governor is here.
- Resources like 128GB RAM can be allocated and 24 Cores of CPU's are allocated.
- Multi Node failover cluster.
If any DML operations are performed data will go into database in an unorganized way which leads to fragmentation, as fragmentation is more any select/search operation takes more time then usual, which is an performance issue.
So to decrease the fragmentation level we use index rebuild.
***********************************************************************
Instances types in SQL Server
There are two types instance they are:
- Default Instance: These type of instances can be only 1 per server as the instance name is itself the server name so only 1 default instance can be crated per server.
- Named Instance: These type of instance can maximum 50 instances per servers.
A server can contain only 50 Instances - in which only 1 instance can be the default instance, rest all can be named instance, in other case we can keep all 50 instances as named instances in a server.
- For SQL Server 7.0 we can have 1 instance per sever (No Named instances)
- For SQL Server 2000 we can have 16 Instances per server
- For SQL Server 2008 We can have 50 Instance per server
SQL Server Services
There are different services provided by MS-SQL server, These different SQL Server services are also called as SQL Server components they are- SQL server Engine Services.
- SQL server Agent.
- SQL server full text demon launcher.
- SQL server browser.
- SQL server Integration Services
- SQL server Reporting Services.
- SQL server Analysis Services.
- SQL server ADH: Integration of SQL with AD on SQL server 2000(Not shown in configuration manager).
- SQL server writer: Added functionality to backup and restore VSS (Not Shown in configuration manager).
Types of SQL Server Services
There are two types SQL Services they are:
- Instance Aware services.
- Instance Unaware services
Instance Aware Services: These are specific services to an instance 1 per instance, below services are the instance aware services.
- SQL server Engine Services
- SQL server Agent.
- SQL server full text demon launcher.
- SQL server Reporting Services.
- SQL server Analysis Services.
Instance Unaware Services: These are shared services across servers have mostly 1 per server, below services are the Unaware services.
- SQL server Browser.
- SQL server Integration Services.
- SQL server ADH.
- SQL server writer.
Comments
Post a Comment