I want to do a batch csv file upload process in cake.php and save data in sql server.I successful uploaded the csv file and get the current time. Each batch of file contain 7 row of data. I've facing a problem when each batch of file saved into the table named "RAS_Off_Upload", the Up_Time column (getdate from current upload process) will renew/replace all the previous batch row of Up_Time into same current time.So, i can't recognize each batch was uploaded on what time because each batch already become same time.
database column:
[No]
,[RAS_Code]
,[Value]
,[Remark]
,[SOF]
,[Created_by]
,[CLN_No]
,[Lot_No]
,[Prod]
,[Date]
,[Time]
,[id]
,[Line]
,[Up_Time]
,[BatchLoadID]
i've create the SP
CREATE PROCEDURE [dbo].[test]
@Up_Time varchar(50)
AS
SET NOCOUNT ON;
UPDATE dbo.RAS_Off_Upload
SET dbo.RAS_Off_Upload.Up_Time = GETDATE()
thanks in advance! appreciate all the comment.