I have this connection made to access local database, that when using the executable on the computer where I created the application works and can access the database.
public DAL ()
{
AttachDbFilename="+ System.Windows.Forms.Application.StartupPath + @" \ staff.mdf; Integrated Security = True; Connect Timeout = 30 ");