title: Can I associate a connection string with an endpoint in WCF?
body: <p>We have a WCF REST service that connects to a database.  In fact, we have several instances of the database, all with the same schema.</p>
  
  <p>We would like to set up one endpoint for each database instance and associate a connection string with the endpoint.  The service would read the connection string and connect to the appropriate SQL Server instance.</p>
  
  <p>I'm sure this is possible; is it a good idea?  How do I set it up?  Is there documentation on MSDN?</p>
  
  <p><strong>Edit:</strong> I found <a href="https://stackoverflow.com/questions/4718537/dynamically-adding-wcf-data-services-endpoints">this question</a>, where the answer suggests adding connection information on the client in a header.  I don't want to do that—for security reasons, and because I <em>do</em> want to have a distinct uri for each database.</p>