Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
90 people like it. Like the snippet!
get the list of ethernet sql servers
1: 2: 3: 4: 5: 6: 7:
let getActiveSQLServers() = [for serv in Sql.SqlDataSourceEnumerator.Instance.GetDataSources().Rows -> if System.DBNull.Value.Equals(serv.["InstanceName"]) then serv.["ServerName"] :?> string else ( serv.["ServerName"] :?> string + "\\" + (serv.["InstanceName"] :?> string) ) ].ToList()