Ovido
Idioma
  • Inglês
  • Espanhol
  • Francês
  • Português
  • Alemão
  • Italiano
  • Holandês
  • Sueco
Texto
  • Maiúsculas

Usuário

  • Entrar
  • Criar conta
  • Atualizar para Premium
Ovido
  • Início
  • Entrar
  • Criar conta

MSSQL 101

What is SQL?

SQL is a standard language for storing, manipulating and retrieving data in databases

What is MSSQL Server?

a relational database management system (RDBMS).

What is a database?

an organized collection of structured information, or data, typically stored electronically in a computer system

What are server roles?

Fixed server roles, which are built into SQL Server, and do not allow you to modify permissions or user-defined roles. We cover the main fixed server roles below.

User-defined roles, which you can customize for your organization’s security requirements.

What is the Priniciple of Least Priviledge?

concept in cybersecurity that advocates for granting individuals or systems the minimum level of access and permissions necessary to perform their specific tasks or functions, and nothing more

What are the three types of roles you can use to restrict access to data in your database in SQL Server?

server-level roles, database-level roles, and application-level roles.

Details on Server-Level Roles

Server-level roles help manage permissions for the entire SQL Server instance
Fixed server roles cannot be changed


public—default role for server principals who do not have specific securable object permissions. Only assign public permissions to objects that can be made available to all users. You cannot revoke public permission from any server role.


dbcreator—can alter, create, drop, or restore databases.

diskadmin—can manage disk files.

bulkadmin—can execute BULK INSERT

setupadmin—can add/remove linked servers and run Transact-SQL

processadmin—can end running processes in the SQL server instance.

securityadmin—can administer logins, can reset SQL server login passwords, and grant, deny or revoke server-level permissions or database-level permissions

serveradmin—can alter server configuration and shut it down

sysadmin—can perform all server activities.

Database Roles

db_owner—allowed to perform all maintenance and configuration activities on the database, as well as dropping the database

db_securityadmin—can modify custom role memberships and manage permissions. Monitor this role closely as it has the ability to escalate privileges.


db_accessadmin—can add/remove database access for Windows groups and logins, as well as SQL Server logins


db_backupoperator—can perform database backups


db_ddladmin—can run data definition language (DDL) commands


db_datawriter—can add, change, or delete any user table data.


db_datareader—limited to reading data from user tables


db_denydatawriter—are not allowed to add, modify or delete user table data


db_denydatareader—cannot read any of the data in a user table

SQL Server Authentication mode

Users need to specify the login and password while connecting to SQL Server.

Windows Authentication

In Windows authentication, the user should first authenticate himself within Active Directory. SQL Server authenticates users through the Windows principal token in the OS. With that, SQL Server does not ask for a password for identity validation. Therefore, Windows confirms users’ identities for authentication

What does it mean to take a backup?

Copies the data or log records from a SQL Server database or its transaction log to a backup device, such as a disk, to create a data backup or log backup.

What is a backup?

A copy of SQL Server data that can be used to restore and recover the data after a failure.
A backup of SQL Server data is created at the level of a database or one or more of its files or filegroups.


Table-level backups cannot be created. In addition to data backups, the full recovery model requires creating backups of the transaction log.

Recovery Model

A database property that controls transaction log maintenance on a database

The recovery model of database determines its backup and restore requirements.


Three recovery models exist: simple, full, and bulk-logged.

Restore

A multi-phase process that copies all the data and log pages from a specified SQL Server backup to a specified database, and then rolls forward all the transactions that are logged in the backup by applying logged changes to bring the data forward in time.

Recovery Model- Simple

The SIMPLE recovery model is the simplest among the available models.
It supports full, differential, and file level backups.

Transaction log backups are not supported. The log space is reused whenever the SQL Server background process checkpoint operation occurs. The inactive portion of the log file is removed and is made available for reuse.


Reasons to choose the simple database recovery model


Most suited for Development and Test databases

Simple reporting or application database, where data loss is acceptable

The point-of-failure recovery is exclusively for full and differential backups

No administrative overhead

Recovery model- Full

In this recovery model, all the transactions (DDL (Data Definition Language) + DML (Data Manipulation Language)) are fully recorded in the transaction log file.

The log sequence is unbroken and is preserved for the databases restore operations.


Unlike the Simple recovery model, the transaction log file is not auto-truncated during CHECKPOINT operations.



Reasons to choose the full database recovery model:


Supporting mission critical applications

Design High Availability solutions

To facilitate the recovery of all the data with zero or minimal data loss

If the database designed to have multiple filegroups, and you want to perform a piecemeal restore of read/write secondary filegroups and, optionally, read-only filegroups.

Allow arbitrary point-in-time restoration

Restore individual pages

Incur high administration overhead

Recovery Model- Bulk_Logged

It’s a special purpose database configuration option and it works similar to FULL recovery model except that certain bulk operations can be minimally logged. The transaction log file uses a technique known as minimal logging for bulk operations. The catch is that it’s not possible to restore specific point-in-time data.

Reasons to choose the bulk logged recovery model:


Use minimal logging technique to prevent log file growth

If the database is subjected to periodic bulk operations

When to use each recovery model?

If the database is a development or a test server, the simple recovery model should mostly be sufficient
However, if a database is a production one, it is generally suggested to go with a full recovery model.

What are the most common types of backups available in SQL Server:

Full
Differential

Transaction log

Tail Log backup

Full Backup

A full backup, as the name implies, backs up everything. It is the foundation of any kind of backup.

This is a complete copy, which stores all the objects of the database: Tables, procedures, functions, views, indexes etc.


Having a full backup, you will be able to easily restore a database in exactly the same form as it was at the time of the backup.


A full backup creates a complete backup of the database as well as part of the transaction log, so the database can be recovered.

This allows for the simplest form of database restoration, since all of the contents are contained in one single backup.

Differntial Backip

A differential database backup is the superset of the last full backup and contains all changes that have been made since the last full backup.
So, if there are very few transactions that have happened recently, a differential backup might be small in size, but if you have made a large number of transactions, the differential backup could be very large in size.

Transaction Log Backup

The log backup, as its name implies, backs up the transaction logs. This backup type is possible only with full or bulk-logged recovery models.

A transaction log file stores a series of the logs that provide the history of every modification of data, in a database.


A transaction log backup contains all log records that have not been included in the last transaction log backup.

what is a database administrator

Database administrators (DBAs) are responsible for maintaining the performance, security, and availability of databases.
They install, configure, backup, restore, monitor, and troubleshoot databases, in addition to enforcing policies and standards. DBAs also work with users and developers to provide access and guidance on database issues.


DBAs need to have a solid understanding of database systems, such as relational, NoSQL, or cloud-based databases, as well as the operating systems, networks, and hardware that support them.

They require skills in database administration tools such as SQL Server Management Studio, Oracle Enterprise Manager, or MongoDB Compass. DBAs should also know scripting languages like PowerShell, Python, or Bash

Quiz
Spanish Physical Descriptions
Signalling pathways induced in cells - Cell Biology
Bilaterians- Biodiversity
korean words
Legislation
Piccoli
CRIM3002
Porifera and Diploblasts- Biodiverity
Geology
The origin of animals- Biodiversity
Chemistry 2
chemistryseason 1-2
Social 30 - 1 Diploma Prep
poetrystudying poetry
Nyhetsjournalistik prov - kopi
Logistiek h1
DNA Technology - Biochemistry
Accent de mot
Forme pleine Forme réduiteForme pleine Forme réduite
la névrose hystérique
A Christmas Carol quotesA quiz on the key quotes in A Christmas Carol
Computer ScienceSection 1.4
Psychological AssessmentReview
math
5th grade math
English Phrases
ccna2 r
ccna2
Enzymes - Biochemistry
Piccadilly Signal Codessignal codes on the piccadilly line
Macbeth quotesA quiz on the key quotes in Macbeth
swedish
medicenjvhvtv
english GCSEenglish bro
science GCSEscience combined.
Demonstrate strategies that enhance the quality of interpersonal relationships.
team work1. Demonstrate strategies that enhance the quality of interpersonal relationships. 2. Demonstrate interpersonal relationships and communication from a relational perspective. 3. Demonstrate learning a...
ScienceScience
Criminal Law- Gross Negligence Manslaughter
Criminal Law- Diminished responsibility
anatomy
Criminal law- Loss of Control
Chordates - Biodiversity
A Christmas Carol By Charles Dickins
хирка
Science revision CELLS
fertilization
DAR DIF
Criminal Law- AR and MR loose ends
Biological Membranes - Biochemistry
BIOLOGY ENZYMESyeah
biology- cell structure
Nyhetsjournalistik prov
Photosynthesis and Plastids - Cell Biology
Structural Carbohydrates - Biochemistry
social media and technology- french
uvod do filozofie - zakov
PhysicsPhysics[Work, Energy and Power]
a-level business🌸
Psychology- Research methods
Supply management
Python
OM
nature vs nurture
Les capitales
Géographie
Ozempic
Chinese food
Blandat
lecon 4 pour commencer
English Grammer
Angla (popraulanje 2. testa)
Amharic
vestib
lying quotes a streetcar named desire
a streetcar named desire scene 1 quotes
a streetcar ned desire quotes and analysis
sociology
karate words1japenese words you need to get yellow belt
cells,diffusion, and osmosis
Holly Hanshaw
Inequalities
Actus Décembre 2023
End of term7
D3 Responses of Travel & Tourism Organisations to External & Internal Factors
End of term6
End of term5
End of term4
End of term3,,,
s
hydraulics 4301-343
2.perodic table and bonding
hydraulics 3251-300
hydraulics 2211-250
Verbes Passe Compose
espagnol
Katakana IE FI WAbabe you're looking mighty fine today *lip bites*
definitionschemisty definitions
End of term2///
End of term1.....
urgentní medicina
College Chem Final
science testscience test review
Criminal Law- UDAM
Slime Molds - Biodiversity
philo voc 1
Tort law- Negligence
Retorische analyse
Argumentatie
cellstalk about cells
LLCE
Hlp autorité et séduction parolehlp autorité séduction parole
عربی
physics
.S.S. finalstudie
Types of Asexual Reproduction (Pre-IB SC 9)
Cell Cycle - Cell Biology
introduction to Sociolinguistics
hydraulicshydraulics final
English
engels
vocab JC 2julius caeser
droit pénal et science criminelles - copy1
engels woordenschat
Vitiating Factors (Misrepresentaion)
Terms
Chromosomes (Pre-IB SC 9)
Sciences
Meiosis (Pre-IB SC 9)
Ploidy (Pre-IB SC 9)
DNA Structure/Function (Pre-IB SC 9)
set 4 vocab
histoire
social psychology
economie begrippen hz4
economie reken formules hz3
economie begrippen hz3
history test 2
espagnol
Science-The Earth
frans unite 3
الكمي تأسيس مراجعة قوانين
Elavon
Barclaycard
Texts IRGS
Worldpay
Dojo
Occupation Theorist's
Sociolect Theorist's
droit pénal et science criminelles
3 (1-2)
llcedkdkd
(1-2) 1
(1-2) 2
BMK
pob insurance
Bio PouchinetExamen fatal final de la MORT
final
Bio révision
Japanese Semester 1 Final Review
kemi 1
Chemistry-midterm 2022-2023
SVT
cellen van planten en dieren
biologie
8 Times Tables
Anatomie système nerveux
US History Semester 1 exam
Joy Purperhart💓
duits worteliste a blz 112
science
unit 1 particles and mixtureschemsitry
sem 1 exam history
karson
forces and motions
Amino acids and Proteins- Biochemistry
monetary
unit 2 vocab 1
Midterm 1: Interpersonal Attraction
gsegypte havo/vwo MEMO paragraaf 1.3 & 1.4
C1- physique-chimie
verbe irregulier
Begrippen - H. 4
Midterm 3: Psychological Well-being + Prosocial Behaviour
Modes
Midterm 1: Social Cognition
Stats final review chapter 12
Stats final review chapter 9
MTC 1140 week 2
Stats final review chapter 7
Stats final review chapter 5
Anatomie système musculaire
Stats final review chapter 4
geschiedenis
Stats final review chapter 3
Stats final review chapter 2
Physiopatho examen III
Stats final review chapter 1
show me tell me
duits.
Criminal Law- Murder
Criminal Law- Consent
le rechauffement climatique
polyatomic
key concepts RGS
Kunstgeschiedenis Kunstenaars Flashcards 2023
Fungi- Biodiversity
Straffrätt
Anatomie système squelettique
CRIM3016 - exam
Midterm 1: the Self
Geo
spanish
Midterm 1: Introduction
englishvocab
cabin crew exam - copy
NSE 101
Mitosis (Pre-IB SC 9)
Midterm 3: Prejudice
cours 12 Les Canadiens aux Jeux Olympiques : 1960-2022
Midterm 3: Aggression
Cours 8 Sports de balles et ballons
netflix series
Cours 7 Loisir, sport de masse et les Canadiens français s’emparent du sport
French vocub
module 6 final exam review : skeletal and muscular systems
espagnolwjjsjs
Formules UE4
Waves gcse higher
bio
Nutrition
Horror and Terror Authors
entrepeneurship test
Physiologie urinaire
L2 S1 : HCE : IIIème République (6)
L2 S1 : HCE : 2nd Empire (5)
Equilibre acido-basique
Système nerveux
L2 S1 : HCE : II ème République (4)
3Bet Ranges
L2 S1 : HCE : Monarchie de Juillet (3)
Question
TENTA 3 - organisation
TENTA 3 - ritningsläsning
WBCs
Cours 6 Jeux français et sports autochtones en Nouvelle-France
begrippen hoofdstuk 5 t/m 8
Phase Potentiation
INSTITUTIONS JURIDICTIONNELLES
itm 618 week 3
stems list w