Olaf Doschke
Programmer
SQL Server answers my need of temp sequences with NO, i.e. CREATE SEQUENCE #counter START WITH 1 INCREMENT BY 1 ; is not working, sequence names are not allowed to start with #
Any way to overcome this? CREATE SEQUENCE tempdb.counter START WITH 1 INCREMENT BY 1 won't work, too.
The more general problem is a bit long winded.
A related question would be, can I iterate the records in the table variables "inserted" and "deleted" of an update trigger, so I could process one record of deleted, then one of inserted, then next of deleted, next of inserted, etc., interleaved? Please don't suggest an inner join by IDs, the problem is records may alter in every field, including an id field or tables may not have a primary key. I try to cover that general case, at least.
Bye, Olaf.
Any way to overcome this? CREATE SEQUENCE tempdb.counter START WITH 1 INCREMENT BY 1 won't work, too.
The more general problem is a bit long winded.
A related question would be, can I iterate the records in the table variables "inserted" and "deleted" of an update trigger, so I could process one record of deleted, then one of inserted, then next of deleted, next of inserted, etc., interleaved? Please don't suggest an inner join by IDs, the problem is records may alter in every field, including an id field or tables may not have a primary key. I try to cover that general case, at least.
Bye, Olaf.