SlideShare a Scribd company logo
9SQL SERVER: DELETINGA DATABASE
DCL COMMANDSWHAT IS DCL?DATACONTROLLANGUAGEAs the name suggests, DCL is used to control Data. It can be used to save or delete tables or rollback to an existing save point.Save Point: It is a marker that represent a point of integrity in a database transaction. It is more like a backup or a restore point that we use in windows.The Next slide illustrates the Save points concept better.
Save Points
Deleting tablesDropping of tables:Microsoft SQL Server 2008 provides yet another simple keyword for deleting the table. And that is the word ‘DROP’drop table tablename;The SQL Command drop deletes the table permanently and beyond recovery. Hence, it is advisable to reconsider deletion before performing it.
Saving tablesSaving the existing work so that it can be resumed with laterMicrosoft SQL Server 2008 commits to us in this matter by providing us with the keyword ‘COMMIT’commit;Caution:	Once used, we cannot undo the changes made to the table previous to this command.
Saving tablesUndo-ing the changes done to the table:Microsoft SQL Server 2008 provides a solution with the simple keywords:‘savepoint’ and ‘Rollback’Create a Save pointsavepointsavepointname;Reverts the database state to the most recently created save pointrollback;NOTE:  You cannot rollback the DDL commands but only DML commands. So be cautious!!!
Summary9. Deletinga database Save Points
 Dropping tables

More Related Content

Similar to MS SQLSERVER:Deleting A Database (20)

PPTX
SQL_SERVER_BASIC_1_Training.pptx
QuyVo27
 
PPT
New features of sql server 2005
Govind Raj
 
PPTX
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
Jürgen Ambrosi
 
PPTX
Getting Started with MySQL II
Sankhya_Analytics
 
PPTX
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
PPTX
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
PPTX
DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
PDF
Dms 22319 micro project
ARVIND SARDAR
 
PPT
Module 3 _SQL Database Management System
prajwalr3501
 
PPTX
introduction to SQL query language beginner.ppt
PatriceRochon1
 
PDF
Mds cdc implementation
Sainatth Wagh
 
PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
PPTX
DBMS week 2 hjghg hvgfhgf,3 BSCS 6th.pptx
universalcomputer1
 
PDF
Beginbackup
oracle documents
 
PPTX
DBMS weSDFDDDFDFDFDSSek 4,5 BSCS 6th.pptx
universalcomputer1
 
PPTX
Sql Functions And Procedures
DataminingTools Inc
 
PPTX
MS SQLSERVER:Sql Functions And Procedures
sqlserver content
 
PPTX
MS SQL SERVER: Sql Functions And Procedures
sqlserver content
 
PDF
Sq lite module5
Highervista
 
ODP
Msql
ksujitha
 
SQL_SERVER_BASIC_1_Training.pptx
QuyVo27
 
New features of sql server 2005
Govind Raj
 
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
Jürgen Ambrosi
 
Getting Started with MySQL II
Sankhya_Analytics
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
Dms 22319 micro project
ARVIND SARDAR
 
Module 3 _SQL Database Management System
prajwalr3501
 
introduction to SQL query language beginner.ppt
PatriceRochon1
 
Mds cdc implementation
Sainatth Wagh
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
DBMS week 2 hjghg hvgfhgf,3 BSCS 6th.pptx
universalcomputer1
 
Beginbackup
oracle documents
 
DBMS weSDFDDDFDFDFDSSek 4,5 BSCS 6th.pptx
universalcomputer1
 
Sql Functions And Procedures
DataminingTools Inc
 
MS SQLSERVER:Sql Functions And Procedures
sqlserver content
 
MS SQL SERVER: Sql Functions And Procedures
sqlserver content
 
Sq lite module5
Highervista
 
Msql
ksujitha
 

More from sqlserver content (20)

PPTX
MS SQL SERVER: SSIS and data mining
sqlserver content
 
PPTX
MS SQL SERVER: Programming sql server data mining
sqlserver content
 
PPTX
MS SQL SERVER: Olap cubes and data mining
sqlserver content
 
PPTX
MS SQL SERVER: Microsoft time series algorithm
sqlserver content
 
PPTX
MS SQL SERVER: Neural network and logistic regression
sqlserver content
 
PPTX
MS SQL SERVER: Microsoft naive bayes algorithm
sqlserver content
 
PPTX
MS SQL Server: Data mining concepts and dmx
sqlserver content
 
PPTX
MS Sql Server: Reporting models
sqlserver content
 
PPTX
MS Sql Server: Reporting introduction
sqlserver content
 
PPTX
MS Sql Server: Reporting basics
sqlserver content
 
PPTX
MS Sql Server: Datamining Introduction
sqlserver content
 
PPTX
MS Sql Server: Business Intelligence
sqlserver content
 
PPTX
MS SQLSERVER:Feeding Data Into Database
sqlserver content
 
PPTX
MS SQLSERVER:Doing Calculations With Functions
sqlserver content
 
PPTX
MS SQLSERVER:Customizing Your D Base Design
sqlserver content
 
PPTX
MS SQLSERVER:Creating Views
sqlserver content
 
PPTX
MS SQLSERVER:Creating A Database
sqlserver content
 
PPTX
MS SQLSERVER:Advanced Query Concepts Copy
sqlserver content
 
PPTX
MS SQLSERVER:Joining Databases
sqlserver content
 
PPTX
MS SQLSERVER:Manipulating Database
sqlserver content
 
MS SQL SERVER: SSIS and data mining
sqlserver content
 
MS SQL SERVER: Programming sql server data mining
sqlserver content
 
MS SQL SERVER: Olap cubes and data mining
sqlserver content
 
MS SQL SERVER: Microsoft time series algorithm
sqlserver content
 
MS SQL SERVER: Neural network and logistic regression
sqlserver content
 
MS SQL SERVER: Microsoft naive bayes algorithm
sqlserver content
 
MS SQL Server: Data mining concepts and dmx
sqlserver content
 
MS Sql Server: Reporting models
sqlserver content
 
MS Sql Server: Reporting introduction
sqlserver content
 
MS Sql Server: Reporting basics
sqlserver content
 
MS Sql Server: Datamining Introduction
sqlserver content
 
MS Sql Server: Business Intelligence
sqlserver content
 
MS SQLSERVER:Feeding Data Into Database
sqlserver content
 
MS SQLSERVER:Doing Calculations With Functions
sqlserver content
 
MS SQLSERVER:Customizing Your D Base Design
sqlserver content
 
MS SQLSERVER:Creating Views
sqlserver content
 
MS SQLSERVER:Creating A Database
sqlserver content
 
MS SQLSERVER:Advanced Query Concepts Copy
sqlserver content
 
MS SQLSERVER:Joining Databases
sqlserver content
 
MS SQLSERVER:Manipulating Database
sqlserver content
 
Ad

Recently uploaded (20)

PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Digital Circuits, important subject in CS
contactparinay1
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Ad

MS SQLSERVER:Deleting A Database

  • 2. DCL COMMANDSWHAT IS DCL?DATACONTROLLANGUAGEAs the name suggests, DCL is used to control Data. It can be used to save or delete tables or rollback to an existing save point.Save Point: It is a marker that represent a point of integrity in a database transaction. It is more like a backup or a restore point that we use in windows.The Next slide illustrates the Save points concept better.
  • 4. Deleting tablesDropping of tables:Microsoft SQL Server 2008 provides yet another simple keyword for deleting the table. And that is the word ‘DROP’drop table tablename;The SQL Command drop deletes the table permanently and beyond recovery. Hence, it is advisable to reconsider deletion before performing it.
  • 5. Saving tablesSaving the existing work so that it can be resumed with laterMicrosoft SQL Server 2008 commits to us in this matter by providing us with the keyword ‘COMMIT’commit;Caution: Once used, we cannot undo the changes made to the table previous to this command.
  • 6. Saving tablesUndo-ing the changes done to the table:Microsoft SQL Server 2008 provides a solution with the simple keywords:‘savepoint’ and ‘Rollback’Create a Save pointsavepointsavepointname;Reverts the database state to the most recently created save pointrollback;NOTE: You cannot rollback the DDL commands but only DML commands. So be cautious!!!
  • 10. Rolling backVisit more self help tutorialsPick a tutorial of your choice and browse through it at your own pace.The tutorials section is free, self-guiding and will not involve any additional support.Visit us at www.dataminingtools.net