I have proplem i have table employee with fields EmployeeID,EmployeeName,Telephone
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 24, 2015, 6:27 PM EST
another is you can add updatedby column and insert the userid of user who update the record
ahmed saRank #8,218 · 226 reputationPosted Feb 24, 2015, 9:28 PM EST
suppose i need to make update the employee as following
CREATE PROC UPDATE_EMPLOYEE
(
@EmployeeID INT,
@EmployeeName NVARCHAR(50)
)
AS
update Employee set EmployeeName=@EmployeeName where EmployeeID=@EmployeeID
Suppose I have two useres A,B
A modified or edit using stored procedure above employee no 5000 field EmployeeName
B need to modify employee no 5000 using stored procedure above field EmployeeName
i need to prevent user B To modify same record using time stamp How to do that from c# code and sql server and what modification in stored procedure to accept timestamp
EmployeeTable
EmployeeID
EmployeeName
TimeStampEmp
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 24, 2015, 9:59 PM EST
ahmed saRank #8,218 · 226 reputationPosted Feb 25, 2015, 2:03 AM EST
ahmed saRank #8,218 · 226 reputationPosted Feb 25, 2015, 2:49 AM EST