Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DBCC command to expand a file

Posted on 2010-08-12
3
266 Views
Last Modified: 2012-05-10
like dbcc shrinkfile
is there a statement to expand a file.

I want the data file to be sized at 4 GB and not 3 GB, where it is at right now.

thanks
0
Comment
Question by:anushahanna
3 Comments
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 250 total points
ID: 33423534
You don't need a DBCC command to do that.  

You use ALTER DATABASE for that.
0
 
LVL 5

Assisted Solution

by:tvPrasad
tvPrasad earned 250 total points
ID: 33423680
Yes, you can use Alter Database with SIZE = 4GB option

0
 
LVL 6

Author Comment

by:anushahanna
ID: 33423687
Thanks.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how the fundamental information of how to create a table.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question