【问题标题】:Where I found out milliseconds for the execution of a query in SQL Server 2008 management studio?我在哪里找到了在 SQL Server 2008 管理工作室中执行查询的毫秒数?
【发布时间】:2013-03-14 12:49:18
【问题描述】:

我在哪里找到了在 SQL Server 2008 Management Studio 中执行查询的毫秒数?

在实际执行计划中我看不到时间。

【问题讨论】:

    标签: sql-server sql-server-2008


    【解决方案1】:

    在查询的开头和结尾使用SET STATISTICS TIME ON/OFF

    【讨论】:

      【解决方案2】:

      几个地方:

      【讨论】:

        【解决方案3】:
         CultureInfo newCulture = (CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
         newCulture.DateTimeFormat.ShortDatePattern = "MM-dd-yyyy";
         newCulture.DateTimeFormat.DateSeparator = "-";
         Thread.CurrentThread.CurrentCulture = newCulture;
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2015-09-21
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多