Can you isolate just where the page is taking so much time? If it's in building the string, then it's a PHP4 problem. If it's in executing the statement, then it's a FreeTDS problem. Are you doing a long series of insert values, or just one long insert select? -- Bruce R. Lewis http://brl.sourceforge.net/