Solved

Problem with DTS

Posted on 2000-03-09
1
264 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
ID: 2601060
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

896 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

11 Experts available now in Live!

Get 1:1 Help Now