Hi, I have this process that inserts a register in one table and then another register in another table. The thing is that the one in the second table must be referenced the id of the register from the first table.
Usually what I do after the register is inserted, i use a select command with the Top(1) to get the last one. It works fine with a single user, but It doesn't seem very professional :rolleyes:.
I was wondering... ¿what's the best way to do it?
Usually what I do after the register is inserted, i use a select command with the Top(1) to get the last one. It works fine with a single user, but It doesn't seem very professional :rolleyes:.
I was wondering... ¿what's the best way to do it?