public object executeScalar(String SQL) { SqlCommand cmd = cn.CreateCommand(); cmd.CommandText = SQL; return cmd.ExecuteScalar(); }