Don't hardcode the URL for the database, instead of that use it as
SqlConnection sqlconnection=new SqlConnection(@"Data Source=.\\SQLEXPRESS;database="Training";Integrated Security=True;Connect Timeout=30;User Instance=True");
Hope this will solve your problem.