 <p><code>AttachDbFilename</code> is used with local database. If you have remote database then the connection string will <a href="http://www.connectionstrings.com/sql-server-2008" rel="nofollow">be different</a>. Have a look at article - <a href="http://support.microsoft.com/kb/914277" rel="nofollow">How to configure SQL Server 2005 to allow remote connections.</a></p>