Am Sonntag, 11. Juni 2017 08:32:54 UTC+2 schrieb
[email protected]:
You can check it with something like
parse arg base user using
call rxfuncadd 'sqlexec', 'db2ar', 'sqlexec'
call rxfuncadd 'sqldbs', 'db2ar', 'sqldbs'
base = 'xxx'
user = 'yyy'
pwd = 'zzz'
call sqlexek 'connect to 'base' user' user ' using ' pwd
'db2 connect to 'base' user' user ' using ' pwd
'db2 UPDATE COMMAND OPTIONS USING C OFF'
do i = 1 to 10000000
cmd = 'db2 create sequence xyz'i
say cmd
cmd
end
'db2 rollback'
'db2 terminate'
return
okay, I could've had this idea ;-) Thanks for trying. So how far did you get? Looks like 100'000 aren't a problem...
But I think it dubious design. They are out of transactions and no gaps are not guaranteed.
Yes, that was my second worry. When does a sequence get incremented? When you select a next value (I guess this is it) or on the next commit. Both present their own problems.
So it's probably best to think about an application-side implementation. The no-gaps thing is tricky...
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)