我在SQL Server 2008 Management Studio中發現了執行查詢的毫秒數?我在SQL Server 2008管理工作室中發現了執行查詢的毫秒數?
在實際執行計劃中,我看不到時間。
我在SQL Server 2008 Management Studio中發現了執行查詢的毫秒數?我在SQL Server 2008管理工作室中發現了執行查詢的毫秒數?
在實際執行計劃中,我看不到時間。
在開頭和查詢的最終用途SET STATISTICS TIME ON/OFF
幾個地方:
sys.dm_exec_query_stats
有last_worker_time
和last_elapsed_time
Duration
set statistics time on
傑克已經指出CultureInfo newCulture = (CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
newCulture.DateTimeFormat.ShortDatePattern = "MM-dd-yyyy";
newCulture.DateTimeFormat.DateSeparator = "-";
Thread.CurrentThread.CurrentCulture = newCulture;