Solved

DBCC command to expand a file

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 r2 - Sum totals 2 25
Update a text value in another table 10 40
SQL - Update field defined as Text 6 17
SQL Select to Group and Filter Data 5 12
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
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…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

772 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