{"name":"gist: 833758","desc":"Use LINQ to extract the DbName from a connection string","actor":"JonAlb","url":"https://gist.github.com/833758","snippet":"Dim ConnectionString As String = \"server=ServerName;uid=UserName;pwd=Password;database=DbName;\"\nDim DatabaseName As String = (From tConnectionString As String In ConnectionString.Split(\";\") Where tConnectionString.StartsWith(\"database\", False)).FirstOrDefault.Split(\"=\")(1)","actor_gravatar":"03481f3771869ffcbc8594567a0c06d2","action":"create"}