B
Brian Henry
What is the best way to do this? (in a stored procedure of course) this is
how i was thinking, are there any problems with this? here is my pseudo code
for the stored proc...
* Data recieved through paramaters
* Select top 1 ID from table ordered in descending order save into a temp id
+ 1 so its the next blank id in @currentid
* insert into table with ID = @currentid
* return @currentid
is that the standard way to do it or is there a better way? thanks!
how i was thinking, are there any problems with this? here is my pseudo code
for the stored proc...
* Data recieved through paramaters
* Select top 1 ID from table ordered in descending order save into a temp id
+ 1 so its the next blank id in @currentid
* insert into table with ID = @currentid
* return @currentid
is that the standard way to do it or is there a better way? thanks!