I've got my DTS package running that exports SQL Server data to a MDB file. The last step in the workflow is a AVBScript Task to compact the MDB:Function Main() Dim jro, fso Dim strSQL1, strSQL2, strFile1, strFile2 Set jro = CreateObject("JRO.JetEngine") Set fso = CreateObject("Scripting.FileSystemObject") strFile1 = DTSGlobalVariables("FileLocation").Value strFile2 = Left(DTSGlobalVariables("FileLocation").Value,Len(DTSGlobalVariables("FileLocation").Value)-3) + "tmp" strSQL1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strFile1 strSQL2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strFile2 jro.CompactDatabase strSQL1, strSQL2 Set jro = Nothing fso.DeleteFile(strFile1) fso.MoveFile strFile2, strFile1 Main = DTSTaskExecResult_SuccessEnd FunctionThe step fails becasue the MDB file is still open from the DTS's connection (the DTS connection uses Jet's Exclusive Mode). How do I close the DTS's connection to the MDB file so I can compact it? I tried a: DTSGlobalVariables.Parent.Connections("Microsoft Access").CloseBut that returns an error saying the Close method does not exist.