u can set following connection string in your web config file..
in ths string give your ip addresss of database server.
<connectionstrings>
<add name="ConnectionString" connectionstring="Data Source=IP address of database;Connection Timeout=3600;Initial Catalog=Databasename;User ID=sa;Password=pwd" providername="System.Data.SqlClient" />
</connectionstrings>