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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Records 5000 At A Time

Status
Not open for further replies.

mark1110

Programmer
Apr 20, 2005
85
0
0
US
Hi,

I have 2 sybase tables, Address and Temp_Address. I need to insert all records in Address into Temp_Address. However, I don't know how many records I have in the Address table and I need to insert them 5000 records at a time then do a commit. Has anyone done this who can help me out?


Thanks,

Mark
 
Stored Procedures can be written to accomplish this.
Use cursor and also commit after reaching 5000 rows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top