sqldata/sqlctapi.cpp
// Get row count for the specified object
Get row count for the specified object
Get row count for the specified object
int SqlCtApi::GetRowCount(const char *object, int *count, size_t *time_spent)
{
	if(object == NULL)
		return -1;
	std::string query = "SELECT COUNT(*) FROM ";
	query += object;
	int rc = ExecuteScalar(query.c_str(), count, time_spent);
	return rc;
}
int SqlCtApi :: GetRowCount ( const char * object , int * count , size_t * time_spent ) { if ( object == NULL ) return -1 ; std :: string query = " " ; query += object ; int rc = ExecuteScalar ( query . c_str ( ) , count , time_spent ) ; return rc ; }
Get row count for the specified object
Get row count for the specified object
// Execute the query