• Save
MS SQLSERVER:Deleting A Database
Upcoming SlideShare
Loading in...5
×
 

MS SQLSERVER:Deleting A Database

on

  • 464 views

MS SQLSERVER:Deleting A Database

MS SQLSERVER:Deleting A Database

Statistics

Views

Total Views
464
Views on SlideShare
463
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MS SQLSERVER:Deleting A Database MS SQLSERVER:Deleting A Database Presentation Transcript

    • 9
      SQL SERVER: DELETINGA DATABASE
    • DCL COMMANDS
      WHAT IS DCL?
      DATA
      CONTROL
      LANGUAGE
      As 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 tables
      Dropping 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 tables
      Saving the existing work so that it can be resumed with later
      Microsoft 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 tables
      Undo-ing the changes done to the table:
      Microsoft SQL Server 2008 provides a solution with the simple keywords:
      ‘savepoint’ and ‘Rollback’
      Create a Save point
      savepointsavepointname;
      Reverts the database state to the most recently created save point
      rollback;
      NOTE: You cannot rollback the DDL commands but only DML commands. So be cautious!!!
    • Summary
      9. Deletinga database
      • Save Points
      • Dropping tables
      • Creating Save points
      • Rolling back
    • Visit more self help tutorials
      Pick 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