Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ultradev / SQL: how to use @@identity

ultradev / SQL: how to use @@identity
Thread Tools
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status: Offline
Reply With Quote
Aug 17, 2001, 08:15 AM
 
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.
"Chance is irrelevant. We will succeed."
== 7 of 9 ==
     
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
Aug 19, 2001, 09:57 AM
 
1) learn SQL for your RDBMS
2) learn the back-end language for your web application server that you're writing the app in
3) get help writing the app from an experienced developer

If you don't understand then you will when the site doesn't work right and you end up pulling your hair out trying to meet your client's deadline realizing you're in over your head.

People writing websites with generated code form ultradev are asking for trouble. There's a lot of problems with the ASP code that UD generates as well as the JavaScript code both UD and DW generate.

Later.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:38 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2