Home Forums SQL Server 2008 T-SQL (SS2K8) How to parse connection strings on a column in SQL Server 2008 RE: How to parse connection strings on a column in SQL Server 2008

  • Found it.

    SELECT

    substring(substring(dbconnection,CHARINDEX('Database=',dbconnection)+9, LEN(dbconnection)),1,CHARINDEX(';',substring(dbconnection,CHARINDEX('Database=',dbconnection)+9, LEN(dbconnection)))-1)

    FROM Connections

    Thanks,

    Kuzey