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 日志文件的命令是什么?

      时间:2023-10-08
      <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 日志文件的命令是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:使用 JDBC 启用 MySQL 通用查询日志 下一篇:如何在不同的数据库中使用带有外键的 django 模型?

                相关文章

                <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>