It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Jul 2006
Location: Redmond, WA
Posts: 1,064
|
how good are you in SQL scripting? on a scale of 1 to 10 when it comes to TSQL, how do you rate? just curious....
__________________
NOSH1T/LOSTGIRLWONDERINGV4 the only real mistake is the one from which we learn nothing (John Powell) |
|
|
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Jul 2006
Location: Redmond, WA
Posts: 1,064
|
then never mind. i have a question to ask that nobody seem to know the answer. i've been looking up books and searching the net but still nada. freaking frustrating *grrr*
if anybody else knows this answer to this one post away pls! you have a stored proc that should return an ID that was just created table: ID - auto increment name - varchar(50) create procedure getID as insert into table1 (name) values ('joe') return @@ ---- ?? // should return the newly generated unique ID by the database i was told there's a function that does this but even the guy who told me this couldn't remember what it is....
__________________
NOSH1T/LOSTGIRLWONDERINGV4 the only real mistake is the one from which we learn nothing (John Powell) |
|
|
|
|
|
#4 (permalink) |
|
Senior Member
Join Date: Jul 2006
Location: Redmond, WA
Posts: 1,064
|
wooh0o! a friend was able to find the answer on a book. the function that returns the auto-incremented id is @@IDENTITY. solved :)
__________________
NOSH1T/LOSTGIRLWONDERINGV4 the only real mistake is the one from which we learn nothing (John Powell) |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The best CMS script | mann3r | Content Management | 20 | 09-02-2008 07:04 PM |
| Script Accessibility? | Nazir | JavaScript | 3 | 10-12-2006 03:22 AM |
| VB Script Tutorial | Ankita | Programming | 0 | 08-05-2006 11:07 AM |
| truth about script filtering | polarisxtx | All Things General | 6 | 05-18-2006 05:16 AM |