thanks very much for your help. but this is my code. my code is running on desktop system. but it is not working in hp laptop. and the "login failed Error occurr. the error is "login failed for user hp-PC\hp".
public class connection
static SqlConnection my_connection = null;
public static SqlConnection get()
if (my_connection == null)
my_connection = new SqlConnection("Server =.;Initial Catalog = fyp;Integrated Security = True");