Populate a temp table with same ID fopr a number of time

S

SF

Hi,

I have a small database for managinf stock. My client wants to print lable
that include item description and barcode as well so that these label can be
put on each box. I have created the following store proc to (call from a
form) run for a number of time using For .. Next until a desire number is
meet.

INSERT INTO dbo.tmpPrintLabel
(ID)
SELECT @ID AS ProductID

The probelm is that thi SP run very slow. For inserting 20 label, it took
about 1 minute or so.
Could any body suggest to improve to run time?

SF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top