Previously, the discovery of what SQL servers exist on your network was quite a task. The general approach involved PInvoke. Yeah. Now, it .Net 2, it's a one-liner. Sweet! public List<SQLServer> GetServers(){ DataTable dt = SqlDataSourceEnumerator.Ins... List<SQLServer> servers = new List<SQLServer>(); foreach(DataRow row in dt.Rows) { SQLServer svr = new SQLServer(); svr.Name = row.ItemArray[0] as string; svr.InstanceName = row.ItemArray[1] as string; svr.IsClustered...
Joel likes to run off on little rants right in the middle of an article about whatever. Usually they're great. Sometimes they are dead on: “If you enjoy programming computers, count your blessings: you are in a very fortunate minority of people who can make a great living doing work they enjoy. Most people aren't so lucky. The very idea that you can "love your job" is a modern concept. Work is supposed to be something unpleasant you do to get money to do the things you actually like doing,...