Viewing 15 posts - 31 through 45 (of 127 total)
the records INSERTed then need to be available to be updated by subsequent records in the driver table - I guess I can say that they are receipt records which...
April 4, 2015 at 10:42 am
Grant - that's an interesting solution, which I might just pursue - thanks
Gail - I am under contract at a client hyper sensitive to intellectual material being stolen - when...
April 4, 2015 at 7:44 am
I'd check the trigger - could there be an error in the SQL in the UPDATE trigger itself? Is it an AFTER trigger or an INSTEAD OF? Does...
March 25, 2014 at 7:03 am
Jeff - on behalf of my client 😛
see http://www.sqlservercentral.com/Forums/Topic1550386-392-1.aspx
I took a stored procedure, modified (but not enough) which had used cursors in Oracle that ran for 88 minutes...
March 14, 2014 at 5:30 am
here's the new proc - it ran the night before in 88 minutes
last night it took 4 minutes:w00t:
legal told me to take it down:(
March 14, 2014 at 5:21 am
nope, I've nearly got it - thanks again for all your help
I'll post it when done, removing the PRINTs, sundry SELECTs of table variables, etc
March 13, 2014 at 1:02 pm
no, this stored procedure is running as part of a larger job run as part of a batch at night
March 13, 2014 at 11:18 am
I want to thank you guys (you are guys, right?) for all your help. I've got the running total working, now gotta get the rest of it working. ...
March 13, 2014 at 9:13 am
after the run
ORDER_ITEMS_STAGE
VALUES ('PARTNO001','000050','04/01/2014','',2,'ATS')
ORDER_ITEMS_STAGE
VALUES ('PARTNO001','000050','05/01/2014','RBAR',2,'ATS')
ORDER_ITEMS_STAGE
VALUES ('PARTNO001','000050','05/01/2014','DTOA',2,'ATS')
ORDER_ITEMS_STAGE
VALUES ('PARTNO001','000050','05/01/2014','DTOA',2,'') - inserted
ORDER_ITEMS_STAGE
VALUES ('PARTNO002','000050','04/01/2014','',4,'ATS')
ORDER_ITEMS_STAGE
VALUES ('PARTNO004','002999','04/01/2014','',4,'ATS')
note no matching Order Item for PART003 - this is OK
March 13, 2014 at 8:52 am
right you are
CREATE TABLE AVAILATS
(ITEM_NO VARCHAR(30) NULL,
CUSTNO CHAR(6) NULL,
OPN_QTY INT NULL)
INSERT AVAILATS VALUES('PARTNO001','000050',6)
INSERT AVAILATS VALUES('PARTNO002','000050',4)
INSERT AVAILATS VALUES('PARTNO003','000050',2)
INSERT AVAILATS VALUES('PARTNO004','002999',8)
CREATE TABLE ORDER_ITEMS_STAGE
(ITEM_NO VARCHAR(30) NULL,
CUSTNO CHAR(6) NULL,
REQUIRED_DATE DATE NULL,
DPAS_RTNG CHAR(4) NULL,
REQUIRED_QTY...
March 13, 2014 at 7:12 am
the real AVAILATS has 40K records - and the real ORDER_ITEMS_STAGE 3 million records
CREATE TABLE AVAILATS
(ITEM_NO VARCHAR(30) NULL,
CUSTNO CHAR(6) NULL,
OPN_QTY INT NULL)
INSERT AVAILATS VALUES('PARTNO001','000050',6)
INSERT AVAILATS VALUES('PARTNO002','000050',4)
INSERT AVAILATS VALUES('PARTNO003','000050',2)
INSERT...
March 13, 2014 at 6:03 am
thank you for making the stored procedure more readable
here's what the procedure does:
it takes a file of Available to Ship
with ItemNo CUSTNO and qty
...
March 12, 2014 at 1:11 pm
Gail
you rock!
but you knew that already
this also works in SQL Server 2000
April 20, 2010 at 1:41 pm
I had this problem at an earlier job and it was a dog - arf! Making the WHERE select into a temp file helped a bit. If you...
February 19, 2009 at 2:49 pm
your question, is, however, in the wrong category
you should post questions like this in the 2005 Newbies thread
that thread seems to be filled with advanced qustions about best practices for...
February 2, 2009 at 7:37 am
Viewing 15 posts - 31 through 45 (of 127 total)