Solved

DBCC command to expand a file

Posted on 2010-08-12
3
267 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

733 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