the client need not know the database connection string, only the location of the service. likewise, the service on your central server need not know anything about your client's database location.
if you look closely at the sample (am assuming the one you downloaded from the Sync Fx teams code gallery), you can isolate the server and client side code.