Question : asp.net mssql I have a need to update records where the record column needs modifing in orde to match the Id value


I have a need to update records where the record column needs modifing in order to match the Id value in the where clause
also can i update more than one table like using commit transaction this way..

for example:  in this WHERE [Radactive_ILoad_Indexes].[ImageId] = @ID
the value of imageID is 100_1 the @ID value is 100
or the value could be
the value of imageID is 99_0   & the @ID value is 99

         
1:
2:
3:
4:
5:
6:
DeleteCommand="BEGIN TRANSACTION  
                   UPDATE [Equipment] SET [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE Equipment.ID = @ID 
                     UPDATE [CustomerImages] Set [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE [CustomerImages].[ImageId] = @ID
                      UPDATE [Radactive_ILoad_Images] Set [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE [Radactive_ILoad_Images].[ImageId] = @ID 
                        UPDATE [Radactive_ILoad_Indexes] Set [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE [Radactive_ILoad_Indexes].[ImageId] = @ID 
                    COMMIT TRANSACTION"

Answer : asp.net mssql I have a need to update records where the record column needs modifing in orde to match the Id value

OK, can there be multiple values for imagid like 100_1, 100_2, 100_4 ?

If so, which one will match, or do they all need updating ?
Random Solutions  
 
programming4us programming4us