You will need to specify the path of the database file when connecting to DBMS - when you will need to execute an operation on the database - something like:
public void ExecuteDbOperation()
{
var appDir = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
var dbDir = System.IO.Path.Combine(appDir, "DB");
var dbFilePath = System.IO.Path.Combine(dbDir, "PokerPlayers.mdf");
var connectionString = string.Format(@"Server=SERVER_NAME\INSTANCE; AttachDbFilename={0};Database=Players; Trusted_Connection=True;", filePath);
using(var conn = new SqlConnection(connectionString))
{
}
}
Hope that helps,
Uroš