SQL Server Database

The size of SQL Server Database can be reduced/shrunk using any of the following two methods-

Method 1: With the help of SQL Server Management Studio

Under this method, follow the steps given below for shrinking or reducing the size of SQL Server Database (.MDF and .LDF)-

  1. Right-click the database name >>Tasks>>Shrink>>Database
    database 1
  2. Click OK
    data base 2

OR

Method 2: With the help of Transact SQL Command

Under this method, follow the steps given below for shrinking or reducing the size of the SQL Server database using the SQL Command-

  1. Open the window- SQL Server Management Studio
  2. Connect it to the Database Engine
  3. Click on New Query from the Standard Bar
    data base 3
  4. Enter the following SQL command in the query window and click on Execute
    DBCC SHRINKDATABASE (DatabaseName, ‘target percent’); this command helps in shrinking the database
    Database 4

We hope that you must have understood how you can shrink/reduce the size of your database using any of the two methods discussed above. If you still face any difficulty, feel free to reach out to the bodHOST Team for an unmatched and proactive 24×7 tech support.

 

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Fix DNS_PROBE_FINISHED_NXDOMAIN Error in Android

The DNS_PROBE_FINISHED_NXDOMAIN error on Android appears when your device is unable to resolve a domain…

How To Reset Your Password For A cPanel User

In this tutorial, we have explained to you how to reset your cPanel password and…

How to Save a Database with MySQLDump in WAMP?

Summary Today, we will learn how to save a MySQL database on a Windows environment,…