I need to create a login-page for a website. The user gets a unique user_id, but this user_id is not the unique id for the login-table, but for another table (profile-page). Because I don't want to start with the profile table when registering, I need to create an empty record into this table. Then I have a new user_id which I can use in the login-table.
(Yeah, and I know things could have been different with the user_id as the unique identifier for the login-table, but for several reasons that's not an option.)
My problem is how to create this empty table on the login-page. I know it has something to do with @@identity, but I don't have any examples available, and everybody who could help me here is on holiday
So my problem is what sql I have to enter into ultradev.
