so you have a number of different students that you want to update? based on a list of student ID's?You can use an IN list.UPDATE table_student SET [stud_group_number] = 1WHERE [stud_id] IN ( 10, 3, 4, 6, 111, 23 )
If you want to pass such an array from a program into your database stored proc or whatever then the link that webfred posted will tell you everything you need to know.Charlie===============================================================Msg 3903, Level 16, State 1, Line 1736The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION