2016年8月28日 星期日

2016年8月9日 星期二

利用WAITFOR DELAY來模擬資料庫忙碌

模擬資料庫等待五秒才回應
WAITFOR DELAY '00:00:05';

https://technet.microsoft.com/zh-tw/library/ms188253(v=sql.105).aspx

應用情境:
營運資料庫較忙碌,有些情況在測試環境測不出來,需要假裝很忙碌

2016年5月9日 星期一

Web Essentials (Visual Studio extension)

http://vswebessentials.com


REF:
活用 VS2012 擴充套件 - 使用 ZenCoding 快速產生 HTML 語法
https://www.youtube.com/watch?v=_qHWFxCqQSo

log4net versus TraceSource

http://stackoverflow.com/questions/576456/log4net-versus-tracesource


Keyword: System.Diagnostics

tangible T4 Editor

https://visualstudiogallery.msdn.microsoft.com/784cf592-b797-4d4d-ad33-331fcf63faad

提供開發T4時的IntelliSense、Syntax-Highlighting

2016年5月3日 星期二

DAC:專用管理員連接

https://msdn.microsoft.com/zh-tw/library/ms190468(v=sql.120).aspx
sp_configure 'remote admin connections', 1;
GO
RECONFIGURE;
GO
說明
0
表示只允許使用 DAC 的本機連接。
1
表示允許使用 DAC 的遠端連接。

https://msdn.microsoft.com/zh-tw/library/ms189595(v=sql.120).aspx
只有 SQL Server 系統管理員 (sysadmin) 角色的成員可以使用 DAC 進行連接
預設port是1434,每個 SQL Server 執行個體只能有一個 DAC連接


ref:
SQL Server Express 與 「專用管理員連接(dedicated administrator connection,DAC)」
http://sharedderrick.blogspot.tw/2008/12/sql-server-express-dedicated.html

The Dedicated Admin Connection: Why You Want It, When You Need It, and How To Tell Who’s Using It
https://www.brentozar.com/archive/2011/08/dedicated-admin-connection-why-want-when-need-how-tell-whos-using/

Another great reason to enable remote admin connections
https://mattsql.wordpress.com/2014/11/06/another-great-reason-to-enable-remote-admin-connections/