Solved

Problem with DTS

Posted on 2000-03-09
1
263 Views
Last Modified: 2013-11-30
I am using DTS in SQL Server 7.0 (w/ servicepack1) to import data from a text file to a table. There is a large amount of data, i need to set the "insert commit size" in the "data transformation properties" to ensure the performance and also to allow me to resume if an error occurs. If the package run successfully with any error, that's fine. However, if it meets an error, i am likely to rerun the package. Rerunning the package will casue it to hang at the first process till timeout. Setting the "insert commit size" to 0 or 1, will not cause the error. Any number above 1, will trigger this error.

This is what the import package does,

   1.   Drop the existing table and recreate it
   2.   Import data from a textfile into the table

Perhaps i had used this feature wrongly, missed some setting or its an existing bug in SQL Server 7.0. Please enlightening on this issue. thanks in advance.
0
Comment
Question by:RayLeong
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 40 total points
Comment Utility
I think the problem is that your first execution has still a connection open (use sp_who in a query analyser to check this)
When to rerun your package, you try to drop a table that is still locked (by the first execution)
You may see the current locks using sp_lock in the query analyser
I run often into this problem when executing a DTS Package, but not when scheduling the package as a job.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now