Sealyu

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

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評論 :: 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) 評論(1)  編輯  收藏

          評論

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


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 平遥县| 五原县| 清苑县| 通江县| 忻城县| 宜兴市| 赤水市| 巴彦县| 玛曲县| 凭祥市| 榆社县| 罗源县| 广德县| 盐边县| 嵩明县| 香格里拉县| 厦门市| 武平县| 宁波市| 本溪市| 顺平县| 三门县| 山东省| 金门县| 凉山| 长武县| 吉首市| 乌兰察布市| 扎兰屯市| 康马县| 武义县| 莎车县| 芜湖市| 织金县| 岢岚县| 百色市| 阿坝| 哈巴河县| 新兴县| 苍溪县| 嘉荫县|