Overload List

  NameDescription
ExecuteQuery(CommandType, String)
Executes the SQL query in the sql parameter against the database. Use this method when the sql query returns a result set (e.g., SELECT or some stored procs). Otherwise, use ExecuteNonQuery(CommandType, String).
ExecuteQuery(CommandType, String, array<SqlParameter>[]()[])
Executes the SQL query in the sql parameter against the database. Use this method when the sql query returns a result set (e.g., SELECT or some stored procs). Otherwise, use ExecuteNonQuery(CommandType, String).

See Also