RE: Insert daily records from one table to individual merchant tables
Hi,If it helps - yes you can do away with cursors and still step through everything:- SET @PK = (SELECT MIN(PK) FROM #Values) SET @MaxPK = (SELECT MAX(PK) FROM #Values) WHILE @PK <= @MaxPK BEGIN--Do whatever you are doingSET @PK = (SELECT MIN(PK) FROM #Values WHERE PK > @PK) ENDThough i'm not too certain what […]
2004-11-02