Professional Documents
Culture Documents
Group Members: Vikram Jassal Mandeep Kaur Parminder Kaur Tanu Bharadwaj
User: User databases created by users to stored all the data related in organisation. The number of user databases created in SQL Server depends on the requirements of the organization.
Before creating a database, we need to understand the file and file group structure in SQL Server databases. Various files in SQL Server are:
Primary data: Every database has one primary file that points to other files in the database. Primary data files have .mdf extension.
Secondary data: These files are used to store all the database information. Secondary data files have .ndf extension.
Log: These files are used to track the transaction information and recover the data. There can be one or more than one log files in a database. Log files have .ldf extension.
Master Database
Tempdb database
User Database 1
User Database 2
Open the Enterprise Manager. Expand the Database node in the left pane of the SQL Server Enterprise Manager window. Right click a display a shortcut menu, as shown below:
3. Select the new database option to display Database Properties dialog box. 4. Enter name of database which you want:
5. Click the Data Files tab on the Database Properties CH6 dialog box display the Data Files tab page, as shown below:
6. In the File Name Column specify the MyDatabase_Data for the database file in the File Name column. Specify the location of the file in the location column. Specify the Initial size of the database file in the initial size (MB) column. Specify the file group of database file in a Filegroup database. The database file tab page contains two 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 data files, 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).
Thanks