I have C# .net project with SQL Server 2008 written in Visual Studio 2008. There I used the following connection string to connect with SQL Server:
string co
If the database is local with the application you can use LocalHost in your connection string assuming all other information is the same.
LocalHost
Eg:
string connectionString = @"server = LOCALHOST\SQLEXPRESS; Integrated Security = SSPI; database = XPHotelManagementDatabase";