Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to change log file's settings

Author  Topic 

hayko98
Starting Member

29 Posts

Posted - 2012-02-08 : 14:44:14
Hi all,
I created datebase(SQl 2008) and placed my mdf file in F drive ,ldf file in G drive.I am trying to increse log files size.When i go to database's property/files i don't see log file.How do i change log files settings from SSMS?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-08 : 14:46:15
right click on database choose properties. in that it will list all files (mdf,ndfs if any and ldfs) against that you've option to set log files growth ,max size etc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

hayko98
Starting Member

29 Posts

Posted - 2012-02-08 : 14:57:42
As i said(When i go to database's property/files ),all i see is mdf file
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-08 : 15:04:17
then try manually mapping it to ldf file in g:\ and set properties accordingly

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

hayko98
Starting Member

29 Posts

Posted - 2012-02-08 : 15:18:33
How do i map manually?.From SSMS?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-08 : 15:24:02
yep...through the wizard you can map it by clicking browse button (... in properties)

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-08 : 15:28:42
I don't understand what visakh is saying. You don't map files in SSMS.

hayko98, a database requires a minimum of two files. If you are only seeing one file, then I am suspecting a problem with your database. Is that database accessible in SSMS? Have you run DBCC CHECKDB against it?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-08 : 15:36:16
i meant this

http://msdn.microsoft.com/en-us/library/ms189253.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-08 : 15:38:25
My point is that the file has to already exist if the database is operational. A data file and a transaction log file are the minimum requirements of a database. Once it's created, you don't map another one unless it's for storage reasons.

The fact that hayko98 isn't see two files there at a minimum puts into question the validity of the database since 2 are required.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

hayko98
Starting Member

29 Posts

Posted - 2012-02-08 : 15:40:29
OK.I was connecting to this server from my workstation.When i actualy opened SSMS from that server it shows both files.Looks like problem comes from my workstation.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-08 : 15:42:20
quote:
Originally posted by tkizer

My point is that the file has to already exist if the database is operational. A data file and a transaction log file are the minimum requirements of a database. Once it's created, you don't map another one unless it's for storage reasons.

The fact that hayko98 isn't see two files there at a minimum puts into question the validity of the database since 2 are required.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog


yep...agree to that
we had couple of occasions where we had to map it to different drive due to space constraints which was what I was referring to

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-08 : 15:50:59
Right. "Mapping" or better wording would be "adding" a second tlog file is separate from the problem OP has.

I hate the idea of a second log file, so I always remove one of them when the storage is worked out. Some people think it provides load balancing, but that is not the case with the transaction log.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

hayko98
Starting Member

29 Posts

Posted - 2012-02-08 : 15:53:22
Any idea what is wrong with my SSMS?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-08 : 15:58:42
Run DBCC CHECKDB(DatabaseNameGoesHere) to see if something is wrong with the database.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-08 : 15:59:01
And could you show us a screenshot of the files page in database properties?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -