1. <small id='lCYIB'></small><noframes id='lCYIB'>

    • <bdo id='lCYIB'></bdo><ul id='lCYIB'></ul>

  2. <tfoot id='lCYIB'></tfoot>
    1. <i id='lCYIB'><tr id='lCYIB'><dt id='lCYIB'><q id='lCYIB'><span id='lCYIB'><b id='lCYIB'><form id='lCYIB'><ins id='lCYIB'></ins><ul id='lCYIB'></ul><sub id='lCYIB'></sub></form><legend id='lCYIB'></legend><bdo id='lCYIB'><pre id='lCYIB'><center id='lCYIB'></center></pre></bdo></b><th id='lCYIB'></th></span></q></dt></tr></i><div id='lCYIB'><tfoot id='lCYIB'></tfoot><dl id='lCYIB'><fieldset id='lCYIB'></fieldset></dl></div>

      <legend id='lCYIB'><style id='lCYIB'><dir id='lCYIB'><q id='lCYIB'></q></dir></style></legend>

      截断 SQL Server 日志文件的命令是什么?

      What is the command to truncate a SQL Server log file?(截断 SQL Server 日志文件的命令是什么?)
      <tfoot id='qozH9'></tfoot>
          <i id='qozH9'><tr id='qozH9'><dt id='qozH9'><q id='qozH9'><span id='qozH9'><b id='qozH9'><form id='qozH9'><ins id='qozH9'></ins><ul id='qozH9'></ul><sub id='qozH9'></sub></form><legend id='qozH9'></legend><bdo id='qozH9'><pre id='qozH9'><center id='qozH9'></center></pre></bdo></b><th id='qozH9'></th></span></q></dt></tr></i><div id='qozH9'><tfoot id='qozH9'></tfoot><dl id='qozH9'><fieldset id='qozH9'></fieldset></dl></div>
            <bdo id='qozH9'></bdo><ul id='qozH9'></ul>
          • <small id='qozH9'></small><noframes id='qozH9'>

          • <legend id='qozH9'><style id='qozH9'><dir id='qozH9'><q id='qozH9'></q></dir></style></legend>

                  <tbody id='qozH9'></tbody>
                本文介绍了截断 SQL Server 日志文件的命令是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我需要在发送给同事之前清空 LDF 文件.如何强制 SQL Server 截断日志?

                I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log?

                推荐答案

                如果我没记错的话...在查询分析器或等效中:

                if I remember well... in query analyzer or equivalent:

                BACKUP LOG  databasename  WITH TRUNCATE_ONLY
                
                DBCC SHRINKFILE (  databasename_Log, 1)
                

                这篇关于截断 SQL Server 日志文件的命令是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Building a comma separated list?(建立一个逗号分隔的列表?)
                Errors in SQL Server while importing CSV file despite varchar(MAX) being used for each column(尽管每列都使用了 varchar(MAX),但在导入 CSV 文件时 SQL Server 中出现错误)
                How can I import an Excel file into SQL Server?(如何将 Excel 文件导入 SQL Server?)
                Export table to file with column headers (column names) using the bcp utility and SQL Server 2008(使用 bcp 实用程序和 SQL Server 2008 将表导出到带有列标题(列名称)的文件)
                Concat field value to string in SQL Server(将字段值连接到 SQL Server 中的字符串)
                SQL Server Bulk insert of CSV file with inconsistent quotes(SQL Server 批量插入带有不一致引号的 CSV 文件)
                    <tbody id='oHet0'></tbody>
                  <legend id='oHet0'><style id='oHet0'><dir id='oHet0'><q id='oHet0'></q></dir></style></legend>

                  1. <small id='oHet0'></small><noframes id='oHet0'>

                    <i id='oHet0'><tr id='oHet0'><dt id='oHet0'><q id='oHet0'><span id='oHet0'><b id='oHet0'><form id='oHet0'><ins id='oHet0'></ins><ul id='oHet0'></ul><sub id='oHet0'></sub></form><legend id='oHet0'></legend><bdo id='oHet0'><pre id='oHet0'><center id='oHet0'></center></pre></bdo></b><th id='oHet0'></th></span></q></dt></tr></i><div id='oHet0'><tfoot id='oHet0'></tfoot><dl id='oHet0'><fieldset id='oHet0'></fieldset></dl></div>
                      • <bdo id='oHet0'></bdo><ul id='oHet0'></ul>

                        1. <tfoot id='oHet0'></tfoot>