Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Trigger in SQL to replace deleted ID to table

Author  Topic 

JmaC
Starting Member

18 Posts

Posted - 2010-08-20 : 23:35:42
hi all...

i have registration form with button DELETE,EDIT,INSERT..
All working fine...

example table:

i have table with 5rows...
1 | Peter
2 | James
3 | Helen
4 | Nickles
5 | John

if i delete ID 3 (3|Helen) from table...

1 | Peter
2 | James
4 | Nickles
5 | John


now am going to register new person...
what i need is when i click INSERT button in form ID:3 have to appear automatically in textbox/dropdownlist to register new person.(use deleted ID for register new person).

i write coding for get ID:6 and it's working good...
can anyone help me...




thanks in advance


Thanks & Regards
JmaC

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-08-20 : 23:49:59
ummm, why? just let the new person be id = 6.
Go to Top of Page

JmaC
Starting Member

18 Posts

Posted - 2010-08-21 : 00:33:27
i trying to keep order in database...

my customer requirement:(
Go to Top of Page
   

- Advertisement -