| Author |
Topic |
|
ed9teen
Starting Member
6 Posts |
Posted - 2008-01-14 : 22:50:48
|
| Hi, i wanted to put a condition based on my codes below.. but where i had to put the condition? like where QTY=3 please help..INSERT INTO magpatoc.dbo.RSOTransfer(RSONO, Customer, ItemCode, ItemDescription, Source, MOQ, QuantityRequired, Remarks, ZeroStock, NewProduct, ProjectForecast, WithMotherPO, Other, RequestedBy, RequestedDatetime, NotedBy, RecievedBy, RecievedDatetime, PreparedBy, PreparedDatetime, ApprovedBy, ApprovedDate, ReservationNoDate, PurchaseOrderNo)SELECT * FROM OPENROWSET ('Microsoft.Jet.OLEDB.4.0','c:\CopyOfRSODB.mdb';'admin';'',FinalCustItemRSO)ed9teenMagnaza |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-01-14 : 23:52:57
|
quote: Originally posted by ed9teen Hi, i wanted to put a condition based on my codes below.. but where i had to put the condition? like where QTY=3 please help..INSERT INTO magpatoc.dbo.RSOTransfer(RSONO, Customer, ItemCode, ItemDescription, Source, MOQ, QuantityRequired, Remarks, ZeroStock, NewProduct, ProjectForecast, WithMotherPO, Other, RequestedBy, RequestedDatetime, NotedBy, RecievedBy, RecievedDatetime, PreparedBy, PreparedDatetime, ApprovedBy, ApprovedDate, ReservationNoDate, PurchaseOrderNo)SELECT * FROM OPENROWSET ('Microsoft.Jet.OLEDB.4.0','c:\CopyOfRSODB.mdb';'admin';'',FinalCustItemRSO)ed9teenMagnaza
Try like thisINSERT INTO magpatoc.dbo.RSOTransfer(RSONO, Customer, ItemCode, ItemDescription, Source, MOQ, QuantityRequired, Remarks, ZeroStock, NewProduct, ProjectForecast, WithMotherPO, Other, RequestedBy, RequestedDatetime, NotedBy, RecievedBy, RecievedDatetime, PreparedBy, PreparedDatetime, ApprovedBy, ApprovedDate, ReservationNoDate, PurchaseOrderNo)SELECT * FROM OPENROWSET ('Microsoft.Jet.OLEDB.4.0','c:\CopyOfRSODB.mdb';'admin';'','SELECT * FROM FinalCustItemRSO WHERE QTY=3') |
 |
|
|
ed9teen
Starting Member
6 Posts |
Posted - 2008-01-15 : 00:45:49
|
| Yes thank you very much it's working...ed9teenMagnaza |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|