Extracting contents of ConnectionStrings in web.config in Silverlight Business application.

Posted by webKite on Stack Overflow See other posts from Stack Overflow or by webKite
Published on 2010-12-21T08:52:51Z Indexed on 2010/12/21 8:54 UTC
Read the original article Hit count: 218

I am trying to read dataSource ad Catalog from connectionString in web.config in Silverlight business project. Unfortunately when I used "SqlConnectionStringBuilder", I could not read connectionstring the has "connectionString="metadata=res:///MainDatabase.Main.csdl|res:///MainDatabase.Main.ssdl|......."" where as it work for "connectionString="Data Source=My-PC\SQL_2008;Initial Catalog =...."".

I could get them using "Split" however, I don't like that solution. Is there any way to get my requirements?

Thanks

© Stack Overflow or respective owner

Related posts about .NET

Related posts about sql-server