given this simmpel procedure, I want to know that it updated the record or not to pass something back to my ASP.net WEB page.
Waht is an yweasy way to do this? check for something? is there Success flag triggered if it was good?
Waht is an yweasy way to do this? check for something? is there Success flag triggered if it was good?
Code:
ALTER Procedure [dbo].[sp_SOWUpdateTimeReporting]
@RecordID int,
--'@ResourceLastName nvarchar(50),
--@ResourceFirstName nvarchar(50),
--@Vendor nvarchar(20),
--@ResourceType nvarchar(20),
--@OffshoreOnShore nvarchar(20),
@SPMID nvarchar(20),
@CostTracker nvarchar(20),
@Year int ,
@Month int ,
@Day int ,
@ADActivityCode nvarchar(20),
@HoursWorked float
--@ApprovedBy nvarchar(30),
--@DateWorked datetime,
--@SOWTracker nvarchar(20),
--@WeekEndDate datetime
AS
Update SOWTimeReporting
set
SPMID = @SPMID,
CostTracker = @CostTracker,
[Year] = @Year ,
[Month] = @Month,
[Day] = @Day,
ADActivityCode = @ADActivityCode,
HoursWorked = @HoursWorked
Where SOWTimeReportingUniqueID = @RecordID
DougP