Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2004, 11:43 AM
Authorized User
 
Join Date: Jun 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default DTS Scheduled Jobs Errors in DB

Hi Folks,

I was hoping if anyone of you might be able to help me. I have got SQL Server 2000 with SP3 and I have scheduled a DTS job to import Excel spreadsheet to the database twice per day as soon as the spreadsheet is updated. Funny enough when the data is imported to the database all the columns are OK apart from the PK currently the ID is 6782 when the import is done is supposed to start from 6783 but it starts from 9592 to 9782, then I have to manually delete it from 9592 downwards, then update stats on the table and start all over once again. I have done this over 12 times but am unable to crack the problem and I would be very glad if someone could help me. Early on the error message I got was PK couldn’t be NULL, which I found very hard to understand because the column was not NULL. I look forward to hearing from you all.

Thanks.


CarlWalden
__________________
CarlWalden
 
Old March 8th, 2004, 11:55 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If an identity column number is used it cannot be re-used, even if the record is deleted without manual intervention. Are you sure that no records were inserted and then removed, even via a transaction that was rolled back?
Perhaps you could create a new table of identical structure except without the identity, import your old data and then set the identity seed etc?

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS scheduled jobs not finishing abob SQL Server DTS 0 July 13th, 2007 07:48 AM
Can only members of sysadmin schedule DTS jobs? Crowandazi SQL Server DTS 1 March 10th, 2005 02:53 AM
Unable to Schedule or See Existing DTS Jobs Crowandazi SQL Server DTS 1 March 4th, 2005 03:43 PM
DTS Scheduled Jobs Errors Walden SQL Server DTS 10 March 16th, 2004 10:32 AM
DTS Scheduled Jobs Errors in DB (Misc) Walden SQL Server DTS 1 March 9th, 2004 08:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.