public static SqlCommand CrearComandoSPIT(string as_storeProc) { string cadenaConexion = ConexionCIT.CadenaConexion(); SqlConnection _conn = new SqlConnection(cadenaConexion); SqlCommand _comando = new SqlCommand(as_storeProc, _conn); _comando.CommandType = CommandType.StoredProcedure; return(_comando); }
public static SqlCommand CrearComandoIT() { string cadenaConexion = ConexionCIT.CadenaConexion(); SqlConnection _conn = new SqlConnection(cadenaConexion); _conn.ConnectionString = cadenaConexion; SqlCommand _comando = new SqlCommand(); _comando = _conn.CreateCommand(); _comando.CommandType = CommandType.Text; return(_comando); }