﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / database log file / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 14:25:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>Thanks much, that helps</description><pubDate>Thu, 06 Dec 2012 12:29:48 GMT</pubDate><dc:creator>sqlfriends</dc:creator></item><item><title>RE: database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>[quote][b]sqlfriends (12/5/2012)[/b][hr]So if a database is set to read only , and by just querying the database, it won't create any log transactions, so no affect on log file, is that correct?[/quote]Selects are never logged, in any recovery model in any database setting. Database changes are what are logged. A read only database can't be changed and hence won't get any log records.</description><pubDate>Thu, 06 Dec 2012 01:52:43 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>[quote][b]sqlfriends (12/5/2012)[/b][hr]So if a database is set to read only , and by just querying the database, it won't create any log transactions, so no affect on log file, is that correct?Thanks,[/quote]That is correct. You can confirm that using fn_dblog(null,null).USE [master]GOALTER DATABASE [DBA_Rep] SET  READ_ONLY WITH ROLLBACK IMMEDIATEGOSELECT * FROM fn_dblog(null,null)Returned 3 transaction log records in my development environmentSELECT * FROM dbo.Backup_HistorySELECT * FROM fn_dblog(null,null)Returned the same 3 transaction log records</description><pubDate>Wed, 05 Dec 2012 16:30:25 GMT</pubDate><dc:creator>George M Parker</dc:creator></item><item><title>RE: database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>So if a database is set to read only , and by just querying the database, it won't create any log transactions, so no affect on log file, is that correct?Thanks,</description><pubDate>Wed, 05 Dec 2012 16:17:45 GMT</pubDate><dc:creator>sqlfriends</dc:creator></item><item><title>RE: database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>[quote][b]sqlfriends (12/4/2012)[/b][hr]If a database is setup to readonly. Will the log file grow or not?thanks[/quote] NO [quote][b]sqlfriends (12/4/2012)[/b][hr]If a database is setup in simple recovery mode.Will the log file grow or not?thanks[/quote] Yes</description><pubDate>Wed, 05 Dec 2012 03:21:51 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item><item><title>RE: database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>It shouldn't since you can't run insert, update, or delete statements.  In addition you can't update the statistics or reorganize or rebuild indexes.</description><pubDate>Tue, 04 Dec 2012 18:48:13 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>database log file</title><link>http://www.sqlservercentral.com/Forums/Topic1392760-1550-1.aspx</link><description>If a database is setup to readonly and in simple recovery mode.Will the log file grow or not?thanks</description><pubDate>Tue, 04 Dec 2012 18:30:26 GMT</pubDate><dc:creator>sqlfriends</dc:creator></item></channel></rss>