Connects to a datasource via connection or connect string.