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.
| Author |
Topic |
|
Trent
Starting Member
39 Posts |
Posted - 2004-12-17 : 10:22:02
|
| This should be overly simple, but my head is mush after putting in over 10 consecutive hours here.What would be the quickest way to do the following:CREATE PROCEDURE usp_NextAvailableIDBySite@SAElse varchar(4) ASset nocount onif @SAElse = 'SA'Begin--cycle through table tTester to find the--next unused TesterID(between '2000000' and '3999999')endelseif @SAElse = 'Else'Beginselect TesterID--cycle through table tTester to find the--next unused TesterID(between '8000000' and '9999999')EndGO |
|
|
Trent
Starting Member
39 Posts |
Posted - 2004-12-17 : 11:21:13
|
| Resolved |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2004-12-17 : 11:22:43
|
how?Go with the flow & have fun! Else fight the flow |
 |
|
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2004-12-17 : 12:04:43
|
| TEN HOURS??!?!??!?!?! You must be exhausted!!!HTH=================================================================Happy Holidays! |
 |
|
|
|
|
|