In case you are not aware, you now get 10GB with the free edition of SQL Server 2008 Express edition!.
Greate news, check out at their official website SQL Server Express 2008
Greate news, check out at their official website SQL Server Express 2008
if(a == x || a == y || a == z)
We can re-write this expression as:
if( new [] {x,y,z}.Contains(a))
public bool IsIn(this T obj, params T[] collection) {
return collection.Contains(obj);
}
And invoke as
if(a.IsIn(b, c, d)) { … }
Read more at Stackoverflow
SELECT c.session_id, c.local_tcp_port, s.login_name, s.host_name, s.program_name
FROM sys.dm_exec_connections AS c INNER JOIN
sys.dm_exec_sessions AS s on c.session_id = s.session_id
WHERE c.local_tcp_port 1433
I found this very useful when monitoring external access to your Sql Server instance.
The original post was here at SqlServerCentral