It does have some big differences depending on how your ASP page will work. In general if you are not paging then a persistable COM object is better. That's assuming when you said you clear the COM, you are setting the reference in you ASP to NULL but not actually destroying the object completely. The next time your ASP page is served, the COM object won't have to re-query SQL for the data. But if your data is huge then paging would be faster since much much less data needs to be transferred between SQL and IIS. Of course you could create multiple COM objects to store the pages of SQL data.
|