Presentation is loading. Please wait.

Presentation is loading. Please wait.

Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.

Similar presentations


Presentation on theme: "Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL."— Presentation transcript:

1 Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL Server Files in SQL Server  Corruption Issues & Remedies

2 Company Logo What is Database ?? A Database is basically a collection of information (data) organized in such a way that a computer program can quickly select desired pieces of Data. For example: Organization Employees Database Library management Database

3 A database management system (DBMS), sometimes just called a database manager, is a program that lets one or more computer users create and access data in a database. It is a collection of programs that enables you to store, modify, and extract information from a database. The Following are Examples of Database Applications: 1.Computerized library 2.Flight reservation systems 3.Hospitals What is DBMS

4 Types Of Database

5 Most Popular Primary Database

6 What Is SQL SQL is a standard query language designed for managing data held in a relational database management system (RDBMS). What Can SQL Do? 1.SQL lets you access and manipulate database. 2.SQL can retrieve data from a database. 3.SQL can insert records in a database. 4.SQL can update records in a database. 5.SQL can delete records from a database.

7 Microsoft SQL Server is a relational database management system developed by Microsoft. As a database, it is a software product whose primary function is to store and retrieve data as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). SQL Server Management Studio is SQL Server’s main interface tool, and it supports 32-bit and 64-bit environments. What Is SQL Server

8 Versions Of SQL Server

9 SQL Server Database Files Primary Data File (.mdf) Secondary Data File (.ndf) Log Data File (.ldf)

10 Primary Data Files The primary data file is the starting point of the database and where you place your data. Every database has one primary data file. The recommended file name extension for primary data files is.mdf. Secondary Data Files Secondary data files comprise all of the data files other than the primary data file. Some databases may not have any secondary data files, while others have multiple secondary data files. The recommended file name extension for secondary data files is.ndf.

11 Log Files Log files hold all the log information used to recover the database. There must be at least one log file for each database, although there can be more than one. The recommended file name extension for log files is.ldf.

12 Components Of SQL Database 1.Table 2.View 3.Trigger 4.Stored Procedure 5.Function

13 1.Tables- All the data in MS SQL Server database is contained in objects called table. The tables have two main components- A. Rows B. Columns 2.View- A view is a virtual table based on the result-set of a SQL statement. 3.Trigger- Trigger are stored programs which are automatically executed when some events occurs used for maintaining integrity.

14 4. Stored Procedure- A stored procedure is nothing more than prepared SQL code that you save so you can reuse the code over and over again. So if you think about a query that you write over and over again, instead of having to write that query each time you would save it as a stored procedure and then just call the stored procedure to execute the SQL code that you saved as part of the stored procedure. 5. Functions- Functions in programming languages are subroutines used to encapsulate frequently performed logic. Any code that must perform the logic incorporated in a function can call the function rather than having to repeat all of the function logic.

15 Constraints Constraints allow you to define the way SQL Server automatically enforces the integrity of a database. Constraints define rules regarding the values allowed in columns. Here are types of constraints-  Primary Key- Column (or columns) in a table that uniquely identifies the rows in that table.  Foreign Key- A FOREIGN KEY in one table points to a PRIMARY KEY in another table  SQL Unique- Uniquely identifies each record in a database table.

16 Corruption Issues 1.Log files or data files have got damaged. 2.Due to lack of disk space, suspect mode like issues crops up in SQL Server database. 3.Due to improper shutdown of database Server, you mostly find SQL database in suspect mode. 4.Suspicious attacks of virus. Corruption Issues & Remedies

17 Remedies 1.Valid Backup: If you have valid and updated backup of SQL database then, use it. 2.Take CHECKDB Help: If you are stuck in error of inconsistency then, you can try DBCC CHECKDB command. 3.Use Third Party Tool

18 SQL Recovery 1. Recover Corrupt SQL Server 2012, 2008 / 2008 R2, 2005, 2000 Database Files. 2. Recover Triggers, Rules, Functions, Tables, Stored Procedures etc. 3. Software will Recover Deleted SQL Server Database table's Data which are not overwritten. 4.Scan & Recover Multiple MDF & NDF Files. 5. Export File into SQL Server Database or SQL Server compatible script. INTACT RECOVERY SOLUTION

19 Open MDF File - SQL Recovery tool will give the option to Open MDF file from the location it is stored in the first screen appeared. Select Open:

20 Now You have two tabs for recovering both MDF file as well as NDF Files, check the Auto detect option, if you want to detect the MDF file automatically.

21 Select the second tab i.e. NDF Options. Click Add Files option to recover the NDF Files. After adding file click on OK button:

22 Software shows the summarized details of selected MDF files and the automatic scanning of the MDF files from SQL Server database take place.

23 You can also save the MDF file in.str file. If you want to save STR file then click on Yes otherwise click on No and move on to second step.

24 Select the location for saving.str file. Click Save:

25 Preview recovered database of MDF and NDF files: software will show the entire database of repaired MDF and NDF files such as tables, triggers, stored procedures and views etc.

26 Now you need to select Export to export the recovered database:

27 There will be display of all the tables, etc. all other elements. You can export the recovered database as MDF and SQL Server compatible scripts. Choose the saving option among: SQL Server Database and SQL Server compatible scripts.

28 If you select SQL Server Database then you have to provide the credentials.

29 The.sql file will get created if you export & save the file as SQL Server Compatible SQL Script mode.

30 Now check the desired component of database to export.

31 Choose from option either you want to export the MDF file with only schema or with schema & Data.

32

33 Click Export/Save option to initiate the export process:

34 More Information Please Visit Us : http://www.purchase- software.org/database- recovery/microsoft-sql.html http://www.purchase- software.org/database- recovery/microsoft-sql.html


Download ppt "Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL."

Similar presentations


Ads by Google