MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
SET NOCOUNT ON; DECLARE @intErrorCode INT BEGIN TRANSACTION SET @TID=(select (counterfrom + currentcounter) from e_counter SELECT @intErrorCode = @@ERROR IF (@intErrorCode <> 0) GOTO PROBLEM insert into e_Login (id,Username,Password) values (@TID, 'U-','U-') SELECT @intErrorCode = @@ERROR IF (@intErrorCode <> 0) GOTO PROBLEM UPDATE e_counter set currentcounter=(currentcounter + 1) where functionno=@FUNID SELECT @intErrorCode = @@ERROR IF (@intErrorCode <> 0) GOTO PROBLEM COMMIT TRANSACTION PROBLEM: IF (@intErrorCode <> 0) BEGIN ROLLBACK TRAN SET @TID=0 END
|query output (script) from a stored procedure||4||33|
|SQL works but want to get the XML node data separately||11||25|
|Checking for column changes SQL 2014||4||16|