oslon Posted November 7 Share Posted November 7 while(true) { if(id==1 && counter.length>7) { counter.value=1 } } Application_counter id| counter 1 | 123 Need to convert this to a procedure that runs forever in ms-sql server. How do I do it? Quote Link to comment Share on other sites More sharing options...
kicken Posted November 7 Share Posted November 7 5 hours ago, oslon said: How do I do it? You don't, because such a thing doesn't make sense to do. How about you describe the problem you think this will solve? Sounds like maybe what you want instead is either a sequence or an identity column. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.