SlideShare a Scribd company logo
1 of 42
Never stop improving quality Microsoft SQL Server LARION_TDT@Internship_03 www.elarion.com
Contents Introduction ,[object Object]
Database management system
Microsoft SQL server
Structures of  Microsoft SQL server
How to create index for each record
Backup, Restore Database
Stored Procedure, Trigger, Function
View
Supporting tools for MS SQL server
Demo2
Relational Database (1 of 4)Definition Relational Database is database that all data are established many tables to have relationship each other. Each table consists of many columns and many rows that each column is usuallycalled a register,each row is described an attribute. 3
Relational Database (2 of 4)The main components The main components: ,[object Object]
Primary key: a collection of one column or many columns inside tables that it is not permit null data and is only one.
Foreign key: a collection of one column or many columns inside tables that they are  a primary of other tables and their data can be permitted null4
Relational Database (3 of 4)Example 1: 5
Relational Database (4 of 4)Example 2 6
Database Management System(1 of 3) Popular Database Management Systems ,[object Object]
MySQL
Oracle
PostgreSql
DB2
…7
Database Management System(2 of 3)Definition Database management system is a software to permit users to create, control and access into database. Database management system has maintained consistency of database during its cycle life. 8
Database Management System (3 of 3)Function The main functions of database management system ,[object Object]
Database construction
Database manipulation: add, delete...
Database administrator: security...
Database protection: backup, restore9
 Mircosoft  SQL server(1 of 3) MS SQL Server is a database management system that it is established and developed by Microsoft based on Transact-SQL method in order to exchange data between Client and MS SQL Server. 10
 Mircosoft  SQL server(2 of 3)Adaptation MS SQL Server is optimized in order to run Very Large Database Environment (VLDE) even though Tera-Byte, especially for serving user thousands  MS SQL Server can collaborate with other servers such as Microsoft Internet Information Server (IIS), Oracle... 11
 Mircosoft  SQL server (3 of 3)Versions Versions of  MS SQL Server ,[object Object]
Developer Edition
Standard Edition
Workgroup Edition
SQL Server Express Edition12
 Mircosoft  SQL server(1 of 3)Structure One of the most usual structures MS SQL Server ,[object Object]
N-tier Architecture13
Structure of MS SQL server(2 of 3) Client / Server Architecture 14
Structure of MS SQL server (3 of 3) N-tier Architecture 15
How to create index for each record(1 of 2) Index is used to supporting and improving for accessing more quick to data flows base on value of  one or many columns. Two forms: ,[object Object]
Non-clustered index16

More Related Content

What's hot

Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql serverDivya Sharma
 
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3Naji El Kotob
 
tempdb and Performance Keys
tempdb and Performance Keystempdb and Performance Keys
tempdb and Performance KeysNaji El Kotob
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training P S Rani
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreTIB Academy
 
FileTable and Semantic Search in SQL Server 2012
FileTable and Semantic Search in SQL Server 2012FileTable and Semantic Search in SQL Server 2012
FileTable and Semantic Search in SQL Server 2012Michael Rys
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database IntroductionChhom Karath
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Databasepuja_dhar
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsYogiji Creations
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architectureAkash Pramanik
 
Oracle vs. MS SQL Server
Oracle vs. MS SQL ServerOracle vs. MS SQL Server
Oracle vs. MS SQL ServerTeresa Rothaar
 

What's hot (19)

Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
 
Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql server
 
MS SQL Server
MS SQL ServerMS SQL Server
MS SQL Server
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
 
tempdb and Performance Keys
tempdb and Performance Keystempdb and Performance Keys
tempdb and Performance Keys
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
 
FileTable and Semantic Search in SQL Server 2012
FileTable and Semantic Search in SQL Server 2012FileTable and Semantic Search in SQL Server 2012
FileTable and Semantic Search in SQL Server 2012
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
Oracle vs. MS SQL Server
Oracle vs. MS SQL ServerOracle vs. MS SQL Server
Oracle vs. MS SQL Server
 
Orcale dba training
Orcale dba trainingOrcale dba training
Orcale dba training
 
Oracle DB
Oracle DBOracle DB
Oracle DB
 

Viewers also liked

MS SQLSERVER:Joining Databases
MS SQLSERVER:Joining DatabasesMS SQLSERVER:Joining Databases
MS SQLSERVER:Joining Databasessqlserver content
 
MS SQLSERVER:Feeding Data Into Database
MS SQLSERVER:Feeding Data Into DatabaseMS SQLSERVER:Feeding Data Into Database
MS SQLSERVER:Feeding Data Into Databasesqlserver content
 
MS SQL SERVER: Introduction To Database Concepts
MS SQL SERVER: Introduction To Database ConceptsMS SQL SERVER: Introduction To Database Concepts
MS SQL SERVER: Introduction To Database Conceptssqlserver content
 
Microsoft SQL SERVER 70 461
Microsoft SQL SERVER 70 461Microsoft SQL SERVER 70 461
Microsoft SQL SERVER 70 461Yogesh.J Jain
 
MS SQL SERVER: Using the data mining tools
MS SQL SERVER: Using the data mining toolsMS SQL SERVER: Using the data mining tools
MS SQL SERVER: Using the data mining toolssqlserver content
 
MS SQL SERVER: Programming sql server data mining
MS SQL SERVER:  Programming sql server data miningMS SQL SERVER:  Programming sql server data mining
MS SQL SERVER: Programming sql server data miningsqlserver content
 
Sqlserver 2012 installation step by step
Sqlserver 2012 installation step by stepSqlserver 2012 installation step by step
Sqlserver 2012 installation step by stepOracle Apps DBA
 
MS SQLSERVER:Creating A Database
MS SQLSERVER:Creating A DatabaseMS SQLSERVER:Creating A Database
MS SQLSERVER:Creating A Databasesqlserver content
 

Viewers also liked (8)

MS SQLSERVER:Joining Databases
MS SQLSERVER:Joining DatabasesMS SQLSERVER:Joining Databases
MS SQLSERVER:Joining Databases
 
MS SQLSERVER:Feeding Data Into Database
MS SQLSERVER:Feeding Data Into DatabaseMS SQLSERVER:Feeding Data Into Database
MS SQLSERVER:Feeding Data Into Database
 
MS SQL SERVER: Introduction To Database Concepts
MS SQL SERVER: Introduction To Database ConceptsMS SQL SERVER: Introduction To Database Concepts
MS SQL SERVER: Introduction To Database Concepts
 
Microsoft SQL SERVER 70 461
Microsoft SQL SERVER 70 461Microsoft SQL SERVER 70 461
Microsoft SQL SERVER 70 461
 
MS SQL SERVER: Using the data mining tools
MS SQL SERVER: Using the data mining toolsMS SQL SERVER: Using the data mining tools
MS SQL SERVER: Using the data mining tools
 
MS SQL SERVER: Programming sql server data mining
MS SQL SERVER:  Programming sql server data miningMS SQL SERVER:  Programming sql server data mining
MS SQL SERVER: Programming sql server data mining
 
Sqlserver 2012 installation step by step
Sqlserver 2012 installation step by stepSqlserver 2012 installation step by step
Sqlserver 2012 installation step by step
 
MS SQLSERVER:Creating A Database
MS SQLSERVER:Creating A DatabaseMS SQLSERVER:Creating A Database
MS SQLSERVER:Creating A Database
 

Similar to Introducing ms sql_server_updated

Introducing ms sql_server
Introducing ms sql_serverIntroducing ms sql_server
Introducing ms sql_serverleetinhf
 
Database Foundation Training
Database Foundation TrainingDatabase Foundation Training
Database Foundation TrainingFranky Lao
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slidesmetsarin
 
Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012Ziaur Rahman
 
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfmysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfpradnyamulay
 
mySQL and Relational Databases
mySQL and Relational DatabasesmySQL and Relational Databases
mySQL and Relational Databaseswebhostingguy
 
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...Ravikumar Nandigam
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architectureAjeet Singh
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL ISankhya_Analytics
 
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxhjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxEliasPetros
 
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)Dave Stokes
 
Sql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptSql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptDrRShaliniVISTAS
 
Introduction to Oracle Database.pptx
Introduction to Oracle Database.pptxIntroduction to Oracle Database.pptx
Introduction to Oracle Database.pptxSiddhantBhardwaj26
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu   (obscure) tools of the trade for tuning oracle sq lsTony Jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu (obscure) tools of the trade for tuning oracle sq lsInSync Conference
 

Similar to Introducing ms sql_server_updated (20)

Introducing ms sql_server
Introducing ms sql_serverIntroducing ms sql_server
Introducing ms sql_server
 
Database Foundation Training
Database Foundation TrainingDatabase Foundation Training
Database Foundation Training
 
Module02
Module02Module02
Module02
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
 
Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012
 
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfmysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
 
mySQL and Relational Databases
mySQL and Relational DatabasesmySQL and Relational Databases
mySQL and Relational Databases
 
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
 
PT- Oracle session01
PT- Oracle session01 PT- Oracle session01
PT- Oracle session01
 
SQL
SQLSQL
SQL
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
Module 3
Module 3Module 3
Module 3
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
 
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxhjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
 
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
 
Sql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptSql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.ppt
 
Introduction to Oracle Database.pptx
Introduction to Oracle Database.pptxIntroduction to Oracle Database.pptx
Introduction to Oracle Database.pptx
 
Mysql Ppt
Mysql PptMysql Ppt
Mysql Ppt
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu   (obscure) tools of the trade for tuning oracle sq lsTony Jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
 

Recently uploaded

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Introducing ms sql_server_updated

  • 1. Never stop improving quality Microsoft SQL Server LARION_TDT@Internship_03 www.elarion.com
  • 2.
  • 5. Structures of Microsoft SQL server
  • 6. How to create index for each record
  • 10. Supporting tools for MS SQL server
  • 11. Demo2
  • 12. Relational Database (1 of 4)Definition Relational Database is database that all data are established many tables to have relationship each other. Each table consists of many columns and many rows that each column is usuallycalled a register,each row is described an attribute. 3
  • 13.
  • 14. Primary key: a collection of one column or many columns inside tables that it is not permit null data and is only one.
  • 15. Foreign key: a collection of one column or many columns inside tables that they are a primary of other tables and their data can be permitted null4
  • 16. Relational Database (3 of 4)Example 1: 5
  • 17. Relational Database (4 of 4)Example 2 6
  • 18.
  • 19. MySQL
  • 22. DB2
  • 23. …7
  • 24. Database Management System(2 of 3)Definition Database management system is a software to permit users to create, control and access into database. Database management system has maintained consistency of database during its cycle life. 8
  • 25.
  • 30. Mircosoft SQL server(1 of 3) MS SQL Server is a database management system that it is established and developed by Microsoft based on Transact-SQL method in order to exchange data between Client and MS SQL Server. 10
  • 31. Mircosoft SQL server(2 of 3)Adaptation MS SQL Server is optimized in order to run Very Large Database Environment (VLDE) even though Tera-Byte, especially for serving user thousands MS SQL Server can collaborate with other servers such as Microsoft Internet Information Server (IIS), Oracle... 11
  • 32.
  • 36. SQL Server Express Edition12
  • 37.
  • 39. Structure of MS SQL server(2 of 3) Client / Server Architecture 14
  • 40. Structure of MS SQL server (3 of 3) N-tier Architecture 15
  • 41.
  • 43. How to create index for each record(2 of 2) Syntax: CREATE [CLUSTERED | NONCLUSTERED] INDEXindex_name ON table_name(column_name [, column_name]...) For example for creating non-clustered index on MADV of NHANVIEN columns: CREATE NONCLUSTERED INDEX idx_nhanvien_madv ONnhanvien(madv) 17
  • 44.
  • 45. Having two backup database forms:
  • 47. By direct action in your SQL Server18
  • 48. Backup, Restore Database(2 of 7)Backup Syntax of Backup Database Commands BACKUP DATABASE { database_name | @database_name_var}TO < backup_device > [ ,...n ][ WITH    [ BLOCKSIZE = { blocksize | @blocksize_variable} ]    [ [ , ] DESCRIPTION = { 'text'| @text_variable} ]    [ [ , ] DIFFERENTIAL ]    [ [ , ] EXPIREDATE = { date | @date_var}        | RETAINDAYS = { days | @days_var} ]    [ [ , ] FORMAT | NOFORMAT ]    [ [ , ] { INIT | NOINIT } ]    [ [ , ] MEDIADESCRIPTION = { 'text'| @text_variable} ]    [ [ , ] MEDIANAME = { media_name| @media_name_variable} ]    [ [ , ] NAME = { backup_set_name | @backup_set_name_var} ]    [ [ , ] { NOSKIP | SKIP } ]    [ [ , ] { NOUNLOAD | UNLOAD } ]    [ [ , ] RESTART ]    [ [ , ] STATS [ =percentage ] ]] 19
  • 49.
  • 50. DIFFERENTIAL: differential backup is only necessary change datas
  • 55. STATS: appearance of programbar20
  • 56. Backup, Restore Database(4 of 7)Backup For example backup database BACKUP DATABASE QLNGKTO DISK= ‘F:ngk.bak’WITH DESCRIPTION = ‘BACK UP’,STATS          GO 21
  • 57. Backup, Restore Database(5 of 7)Backup Result 22
  • 58. Backup, Restore Database(6 of 7)Restore Syntax RESTORE DATABASE { database_name | @database_name_var }  [ FROM <backup_device> [ ,...n ] ]   [ WITH  {      [ RECOVERY | NORECOVERY | STANDBY =          {standby_file_name | @standby_file_name_var } ]     | , <general_WITH_options> [ ,...n ]  | , <replication_WITH_option>     | , <change_data_capture_WITH_option> | , <service_broker_WITH options>     | , <point_in_time_WITH_options—RESTORE_DATABASE>    } [ ,...n ]  ] [;] 23
  • 59. Backup, Restore Database(end)Restore For example: RESTORE DATABASE users FROM DISK='C:ackupusers.BAK' WITH RECOVERY 24
  • 60.
  • 61. SP allows transmission parameters, and may be called by many clients over the network with different parameters. When SP is changed, all clients will automatically receive the new version, because the SP is stored at the Server, not Client.25
  • 62. Stored Procedure, Trigger (2 of 9)Stored Procedure Creating procedure CREATE PROCEDURE procedure_name [;number] [([parameter1] [,parameter2]...[parameter255])] AS sql_statements 26
  • 63. Stored Procedure, Trigger (3 of 9)Stored Procedure For example CREATEPROCEDURE sp_users_insert (@firstname varchar(50), @lastname varchar(50), @birthday date, @groupid int) AS BEGIN ifexists(select groupid from groups where groupid = @groupid) BEGIN insertinto users(firstname, lastname, birthday, groupid)values(@firstname,@lastname,@birthday,@groupid) END END 27
  • 64.
  • 66. Delete triggerFor example: employer salary is not permitted higher than his top-banana 28
  • 67. Stored Procedure, Trigger (5 of 9)Trigger Syntax: CREATE TRIGGER trigger_name ON table_name | view_name [WITH ENCRYPTION] {FOR | AFTER | INSTEAD OF}{ [INSERT] [,] [UPDATE ] [,] [DELETE] } AS sql_statements 29
  • 68. Stored Procedure, Trigger (6 of 9)Trigger CREATE TRIGGER groups_users_delete on groups fordelete as BEGIN DECLARE @groupid int; Set @groupid=(Select groupid from DELETED); deletefrom users where groupid = @groupid END 30
  • 69. Stored Procedure, Trigger (7 of 9)Function Function is database object similar procedures. However, the difference between procedures and function that function returns to a value via its function name while procedures do not. 31
  • 70. Stored Procedure, Trigger (8 of 9)Trigger Syntax CREATE FUNCTION [ schema_name. ] function_name ( [ { @parameter_name [ AS ] [ type_schema_name. ] parameter_data_type      [ = default ] [ READONLY ] }      [ ,...n ]S    ] ) RETURNS return_data_type      [ WITH <function_option> [ ,...n ] ]      [ AS ]      BEGIN          function_body          RETURN scalar_expression      END [ ; ] 32
  • 71. Stored Procedure, Trigger (end)Trigger For example CREATEFUNCTION f_users_tong() RETURNS @bangthongke TABLE (groupid int,groupname varchar(50),tonguser INT) AS BEGIN INSERTINTO @bangthongke SELECT groups.groupid,groups.groupname,COUNT(userid) FROM (groups INNERJOIN users ON groups.groupid = users.groupid) GROUPBY groups.groupid,groups.groupname RETURN END 33
  • 72.
  • 73. View is a virtual screen that it is created as a union of rows and columns by one or many different tables.
  • 74. Decreasing more complex in database34
  • 75. View(2 of 4) Syntax: CREATE VIEW COMMAND used to create view: CREATE VIEW <virtual_name_table> AS <select_statement> 35
  • 76. View(3 of 4) For example: CREATE VIEW DSSV AS SELECT masv, hodem, ten, DATEDIFF (YY, ngaysinh,GETDATE()) AStuoi, tenlop FROMsinhvien, lop 36
  • 78. Supportting tools for MS SQL Server One of the most popular supporting tools for MS SQL sever is SQL Assistant. You can download from link http://www.softpedia.com/progDownload/SoftTree-SQL-Assistant-Download-92428.html 38
  • 79. Demo How to use Diagram Decentralized Backup Restore Function Store Procedure Trigger 39
  • 80.