I have created a package that copies data from one table to another table on a different server. When I run the package, most of the time it runs for a while and then hangs. I am using the method found in this website: http://blogs.msdn.com/b/jorgepc/archive/2010/12/07/synchronize-two-tables-using-sql-server-integration-services-ssis-part-i-of-ii.aspx for synchronizing the tables. In BIDS as I am watching the execution of the package all objects turn Yellow in the Data Flow window and the counts do increase till it hangs. Then the counts stop.
I have run the SQL Server "Resource Locking Statistics by Objects" report on the source server/database and it reports there are two locks on that table by my userid at the time I am running the package (a page lock and a object lock). All I am doing with the table is reading it. In the package the OLE BD Source(SQL Server Native Client 10.0) I am using a query "select * from table where id between ? and ?". "id" is an identity column and a clustered index.
This package does work once in a while. There was never any problems in the Development environment. This is occurring in Production where another application is writing data to the table all day long. The Development environment did not have another app running at the same time.
The package also copies 6 other tables with no problem. The problem table is larger (more columns) than the other tables.
Any ideas of what the problem might be?
Fred
Fred Schmid