Sealyu

          --- 博客已遷移至: http://www.sealyu.com/blog

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評(píng)論 :: 0 Trackbacks

          Sometimes, we might encounter such error from SSIS:

          The transaction log for database '@dbname' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

          Cause:

          To find out available free space of transaction log file:

          Object Explorer àSQL Server instanceàDatabaseàright click on task->shrink->filesàchoose File Type as LogàCheck below “Available Free Space”

          The % of Available Free Space should be 0%.

          View current settings of database by running this T-SQL command:

              sp_helpdb [ [ @dbname= ] 'name' ]

          View size and growth column for log file.

          Next, find Location of the log file and log on to SQL server machine. We should verify if there is no enough space for this log file to be allocated (free space < growth)

          Resolution:

          Object Explorer àSQL Server instanceàDatabaseàright click on Property àChoose Files à

          Option 1.       Add one more log file

          Option 2.       Truncate original log file to a lower size(with this option, you will lose log message)

          Run TSQL command with Alter database:

          ALTER DATABASE @dbname MODIFY FILE ( NAME = N'GDS_Log_1', SIZE = 1925120KB )
          posted on 2008-05-13 14:53 seal 閱讀(4204) 評(píng)論(1)  編輯  收藏

          評(píng)論

          # re: SQL Server 2005 錯(cuò)誤:“The transaction log for database '@dbname' is full” 的解決方法 2012-05-31 08:24 twytigger
          謝謝!!按你方法處理成功!!  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 潞西市| 蒙阴县| 西平县| 景泰县| 霍山县| 商洛市| 东安县| 馆陶县| 定日县| 潍坊市| 赫章县| 海晏县| 新化县| 隆昌县| 博罗县| 澄江县| 华坪县| 彭山县| 阳山县| 灌南县| 兴和县| 溧阳市| 耿马| 扎鲁特旗| 辽宁省| 永德县| 双辽市| 台州市| 普格县| 南昌县| 白水县| 辽源市| 衡东县| 易门县| 阜平县| 溧水县| 林芝县| 宕昌县| 大洼县| 阿拉善盟| 江孜县|