835.DBA Presentation[1]

download 835.DBA Presentation[1]

of 13

Transcript of 835.DBA Presentation[1]

  • 8/22/2019 835.DBA Presentation[1]

    1/13

    Presentation on

    Createdatabases

    Group Members:Vikram Jassal

    Mandeep KaurParminder KaurTanu Bharadwaj

  • 8/22/2019 835.DBA Presentation[1]

    2/13

    Type of Databases in SQL Server

    SQL Server support two types of databases, which are:

    System: Include master database, tempdb database,model database and msdb database. These are the defaultdatabases that are already present in Server.

    User: User databases created by users to stored all thedata related in organisation. The number of user databasescreated in SQL Server depends on the requirements of theorganization.

    Before creating a database, we need to understand the fileand file group structure in SQL Server databases. Variousfiles in SQL Server are:

  • 8/22/2019 835.DBA Presentation[1]

    3/13

    Primary data: Every database has one primary file thatpoints to other files in the database. Primary data files have.mdfextension.

    Secondary data: These files are used to store all thedatabase information. Secondary data files have .ndf

    extension.

    Log: These files are used to track the transactioninformation and recover the data. There can be one or morethan one log files in a database. Log files have .ldfextension.

  • 8/22/2019 835.DBA Presentation[1]

    4/13

    SQL Server 2000

    File and File Groups in SQL Server 2000:

    System Database User Database

    MasterDatabase

    Tempdbdatabase

    UserDatabase 1

    UserDatabase 2

    .mdf files

    .ndf fies

    .ldf files

    .mdf files

    .ndf fies

    .ldf files

    .mdf files

    .ndf fies

    .ldf files

    .mdf files

    .ndf fies

    .ldf files

  • 8/22/2019 835.DBA Presentation[1]

    5/13

    Create database using EnterpriseManager

    1. Open the Enterprise Manager.2. Expand the Database node in the left pane of the SQL

    Server Enterprise Manager window. Right click a display ashortcut menu, as shown below:

  • 8/22/2019 835.DBA Presentation[1]

    6/13

    3. Select the new database option to display DatabaseProperties dialog box.

    4. Enter name of database which you want:

  • 8/22/2019 835.DBA Presentation[1]

    7/13

    5. Click the Data Files tab on the Database Properties CH6dialog box display the Data Files tab page, as shownbelow:

  • 8/22/2019 835.DBA Presentation[1]

    8/13

    6. In the File Name Column specify the MyDatabase_Data forthe database file in the File Name column. Specify thelocation of the file in the location column. Specify theInitial size of the database file in the initial size (MB)column. Specify the file group of database file in aFilegroup database. The database file tab page containstwo sections, File Growth and Maximum file size.

    A. In magabytes: Allows you to determine the increase

    in file size in terms of magabytes.B.By Percent: Allows you to determine the increase in

    file size in terms of percentage of original file size.

    Maximum File Size section helps determine the maximum

    size of a file. To determine the maximum file size for datafiles, we have two options:A. Unristricted file growth: Allows the file to grow till

    the disk space is not full.B. Restrict file growth: Allows you to specify the file

    growth in terms of magabytes (MB).

  • 8/22/2019 835.DBA Presentation[1]

    9/13

  • 8/22/2019 835.DBA Presentation[1]

    10/13

    7. Click the Transaction Log tab.

  • 8/22/2019 835.DBA Presentation[1]

    11/13

    9. Click OK button to create the data TestDatabase database.

  • 8/22/2019 835.DBA Presentation[1]

    12/13

  • 8/22/2019 835.DBA Presentation[1]

    13/13

    Thanks