從 SQL Server 2005 開始提供所謂的「動態管理檢視表(Dynamic Management View)」,會傳回伺服器的狀態資訊,使用下面這道 T-SQL 即可檢視用戶端的 IP 位址:
alexchuo.blogspot.com