Hi there, I have the following code in an ASP page to select and insert information from/into tables in an SQL Server 2000 database. The problem is that it runs very slowly for some reason....much slower than any of the other SQL I have embedded in ASP pages and/or in stored procedures. Can anyone see why this might be?<%On Error Resume NextContractNo=request.form("ContractNo")CostCentre=request.form("CostCentre")Dim objConn, ReportInfoSet objConn = Server.CreateObject("ADODB.Connection")Dim strConnectstrConnect="DSN=*****;UID=*****;PWD=*****"objConn.open strConnectobjConn.execute("DELETE FROM dbo.tCostsOnlyReport")If CostCentre = "" thenSet ReportInfo = objConn.execute("SELECT Property.dbo.tProperties.PropertyName, Engineering.dbo.tAppliance.Cost FROM Engineering.dbo.tAppliance INNER JOIN Property.dbo.tProperties ON Engineering.dbo.tAppliance.DatabaseRef = Property.dbo.tProperties.PropertyNo WHERE (tAppliance.ContractNo = '"&ContractNo&"') AND (tAppliance.LocationCode IS NULL OR tAppliance.LocationCode = '')")elseSet ReportInfo = objConn.execute("SELECT Property.dbo.tProperties.PropertyName, Engineering.dbo.tAppliance.Cost FROM Engineering.dbo.tAppliance INNER JOIN Property.dbo.tProperties ON Engineering.dbo.tAppliance.DatabaseRef = Property.dbo.tProperties.PropertyNo WHERE tAppliance.ContractNo = '"&ContractNo&"' AND tAppliance.LocationCode = '"&CostCentre&"'")end ifwhile (NOT ReportInfo.EOF)PropertyName = ReportInfo.Fields.Item("PropertyName").ValueCost = ReportInfo.Fields.Item("Cost").ValuePropertyName=REPLACE(PropertyName, "'", "''")objConn.execute("INSERT INTO dbo.tCostsOnlyReport (ContractNo, LocationCode, PropertyName, Cost) VALUES ('"&ContractNo&"', '"&CostCentre&"', '"&PropertyName&"', CONVERT(money, '"&Cost&"', 1))")ReportInfo.MoveNext()Wend%>Thanks in advance :)