|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Switching off logging on varbinary columnHi
MS SQL 2005 I am familiar with another DB but in mssql I am rather newbe. In database we have table with varchar(max) column. Users save in this column documents, read them, sometimes change. I am looking for solution to switch off logging operation on this column to prevent growth of log file. Can anybody help? Yaro Yaro
You cannot prevent from logging. To achive what you want , do backup log file on regular period (every hour for example) To reduce a physical size of the log file run DBCC SHRINKFILE command (for details please refer to the BOL) Show quoteHide quote "Yaro" <yarok_delthisd***@op.pl> wrote in message news:dvdugv$fkf$1@83.238.170.160... > Hi > > MS SQL 2005 > I am familiar with another DB but in mssql I am rather newbe. > > In database we have table with varchar(max) column. > Users save in this column documents, read them, sometimes change. > > I am looking for solution to switch off logging operation on this column > to prevent growth of log file. > > Can anybody help? > > Yaro > > Thank you for replay
I found some information about database opion "recovery_option". I haven't written details yet but maybe this is a way? Yaro Show quoteHide quote > You cannot prevent from logging. To achive what you want , do backup log > file on regular period (every hour for example) > To reduce a physical size of the log file run DBCC SHRINKFILE command > (for details please refer to the BOL) >> Hi >> MS SQL 2005 >> I am familiar with another DB but in mssql I am rather newbe. >> In database we have table with varchar(max) column. >> Users save in this column documents, read them, sometimes change. >> I am looking for solution to switch off logging operation on this column >> to prevent growth of log file. >> Can anybody help? >> Yaro No, you really can't turn off logging. The recovery model
you chose for your database doesn't mean transactions aren't logged - it just means the logs are automatically truncated in simple recovery mode. The log is truncated after a log backup as Uri already suggested. If you are in simple recovery, you can only restore back to the last full back up so you risk data loss in the event of needing to restore. Consequently, it's generally not recommended for production databases. -Sue On Fri, 17 Mar 2006 11:59:30 +0100, "Yaro" <yarok_delthisd***@op.pl> wrote: Show quoteHide quote >Thank you for replay > I found some information about database opion "recovery_option". >I haven't written details yet but maybe this is a way? > Yaro > >> You cannot prevent from logging. To achive what you want , do backup log >> file on regular period (every hour for example) >> To reduce a physical size of the log file run DBCC SHRINKFILE command >> (for details please refer to the BOL) > >>> Hi >>> MS SQL 2005 >>> I am familiar with another DB but in mssql I am rather newbe. >>> In database we have table with varchar(max) column. >>> Users save in this column documents, read them, sometimes change. >>> I am looking for solution to switch off logging operation on this column >>> to prevent growth of log file. >>> Can anybody help? >>> Yaro > >
Other interesting topics
Performance: Primary Key = int/nvarchar/guid/...
Stop & Start SQL Server for using scm Trusted Connection failing How do I get my local data in the database on the Internet? Internal SQL Server error Move 2000 to 2005 Memory allocation in MS-SQL 2000 instances Windows says SQL is installed, but it's not! Why do Ado.net don't use execution plan that Query Analyzer Query suddenly becomes very slow |
|||||||||||||||||||||||