How to set the autogrow file name and size in SQL SERVER for my production Database ?

I am using SQL Server 2008 r2. How to  modify  the autogrow file name and size in SQL SERVER  for my production Database  ?
Varshini SAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
What do you mean with autogrow file name?
You can alter the autogrow configurations in SSMS. Just right-click on the database name that you want and choose properties then files and finally the '...' in autogrowth column and in the file that you want to modify.

Alternative is running T-SQL command. Example:

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Varshini SAuthor Commented:
When I execute this query, I can see the FileName in the output. Is it possible to modify the log file name ?

    FileType = CASE EventClass WHEN 92 THEN 'Data' ELSE 'Log' END
 FROM sys.fn_trace_gettable(@path, DEFAULT)
Vitor MontalvãoMSSQL Senior EngineerCommented:
It's possible but you need to stop the database to do that.

But why you want to change a file name?
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Varshini SAuthor Commented:
I have some other databases in the same server.
But the log file names are generated with time stamp so I want to change the name to my log file.
Varshini SAuthor Commented:
Vitor Montalvão ,

For changing the log file should I have to stop SQL server service ?
Vitor MontalvãoMSSQL Senior EngineerCommented:
No. You just need to stop the database that are using the log file. You can't do any operation on files if the database is online.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.