You should not hard code server name and connection string.Store them in app.config instead.So that at l tare date, if you want to change connection string you only have to make change in app.config and not in your code.
add section like below in you app.config
<appSettings>
<add key="ConnectionString" value="actual connection string" />
</appSettings>
use below code to read value from app settings.
System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]