Are you sure it's a PHP4/FreeTDS speed issue? What happens if you take the same long SQL statement and execute it in Enterprise Manager? -- Bruce R. Lewis http://brl.sourceforge.net/