Yes I agree selecting only the date column into the dataset would help but still if its thousands of rows or more its not going to be a good solution. Even though that solution would have the benefit of working for all databases, I think on balance given the pros and cons we should solve this in the db. It will only be solved for MS SQL but that is the most popular db in use with mojoPortal.
Asad, I looked at the files you sent me a while back and they are very old patch files, it will be difficult to get what I need from them. Can you just generate the sql script with the UDF(s) and StoredProcedure(s) and send it to me as a .zip? When you generate the script in SQL 2005 Tasks > Generate Scripts, please choose the option for SQL 2000 compatibility.
Thanks,
Joe