what am i doing wrong here?
Posted on 2006-11-03
public int organization()
string con = "Data Source=sasql01;Initial Catalog=sandbox;Trusted_Connection=true;Persist Security Info=True;User ID=sa_sql;Password=str@teg1K@m3r1ka";
SqlConnection conn = new SqlConnection(con);
string fetch = "Select SMP_Media_Type_Desc from Scores";
SqlCommand cmd = new SqlCommand(fetch, conn);
SqlDataReader sdr = null;
sdr = cmd.ExecuteReader();
string organization = string.Empty;
organization = sdr.ToString();
I am not able to open up the connection. The error: Login failed. The user is not associated with the trusted connection.