title: How to get Database Name from Connection String using SqlConnectionStringBuilder
body: <p>I do not want to split connection strings using string manipulation functions to get Server, Database, Username, and Password.</p>
  <p>I read the following link and read the accepted answer, I found that is the best way to get username and password out from connection string, but what about Database Name?</p>
  <p><a href="https://stackoverflow.com/questions/9975122/right-way-to-get-username-and-password-from-connection-string">Right way to get username and password from connection string?</a></p>
  <p>How to get Database Name from Connection String using SqlConnectionStringBuilder. (does the DataSource is the Server name?)</p>