Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Conexion"].ToString())){
  2. string query = @"SELECT idVariableFormula, Nombre, Abreviacion FROM VariableFormula";
  3. conn.Open();
  4. SqlCommand sc = new SqlCommand(query, conn);
  5. SqlDataReader reader = sc.ExecuteReader();
  6. SqlDataReader reader2 = sc.ExecuteReader();
  7. ...
  8.  
  9. There is already an open DataReader associated with this Command, you must close it first.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement