I never want to split connection string using string manipulation and get server,database,uid and password.
I read the following link and read the accepted answer ,
See MSDN documentation for InitialCatalog Property:
Gets or sets the name of the database associated with the connection... This property corresponds to the "Initial Catalog" and "database" keys within the connection string...
Gets or sets the name of the database associated with the connection...
This property corresponds to the "Initial Catalog" and "database" keys within the connection string...