Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Data from Tbl to Tbl

Status
Not open for further replies.

JVZ

Programmer
Sep 3, 2002
205
CA
I need some help importing data from Tbl A to Tbl B, the problem is that Tbl A has 780,000 records, so if I do just do a insert statement I'm running into Locking problems. I tried using a DTS...however I get the following error saying that my RecordID can not be null. Here is a layout of the tables:

TempTbl:
------------
PortNumber, smallint
CycleNumber, varchar(10)
SeqNumber, varchar(10)
FirstError, varchar(10)
SecondError, varchar(10)
ThirdError, varchar(10)
ForthError, varchar(10)
FifthError, varchar(10)
EmiRecord, varchar(210)

ErrorTbl:
------------
RecordNumber, Int(AutoIncrement)
CycleNumber, varchar(10)
SeqNumber, varchar(10)
FirstError, varchar(10)
SecondError, varchar(10)
ThirdError, varchar(10)
ForthError, varchar(10)
FifthError, varchar(10)
EmiRecord, varchar(210)


What I need help with is, coming up with a way to import the records from TempTbl and inserting them into ErrorTbl.

Thanks in advance for you help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top