I usually wrap all these "implementation details" with some function/stored procedures that have the same name for all supported DBs. -- Luigi D. Sandon