Prepare for your Next Interview
This is a discussion on Advice to generate a sequence number from VB within the VB.NET forums, part of the Software Development category; I have developed a project using VB as front end and oracle as back end where i have to generate a number sequentially. For this i created a sequence in ...
|
|||
|
Advice to generate a sequence number from VB
I have developed a project using VB as front end and oracle as back end where i have to generate a number sequentially. For this i created a sequence in oracle but when i generate a number from this sequence using vb code i am not getting the numbers generated sequentially i.e., either i am getting an even or an odd number. sometimes the sequence is jumping for example after 10 it is either 12 or 22. when i am checking this using SQL plus i.e., from oracle i am getting the sequence perfectly.i have checked my vb code whether the sequence is being called repeatedly but i dont find such thing. i dont know why my sequence which is generating properly from oracle but not giving correct results when it is being called from vb code.
Please give me solution for this or an advice to generate a sequence number from vb |
| Sponsored Links |
|
|||
|
Re: Advice to generate a sequence number from VB
that might happen because of multiple users accessing the same sequence from different sessions. To avoid this u need to specify ORDER in the sequence defination.
If you need to do the same from front end then select the last value that is inserted / already used and increment the same by the value u want. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fastest algorithm to find the number of bits set in a number? | chandan1008 | C and C++ | 4 | 08-27-2008 08:31 AM |
| I want to generate a report in BO | Geek_Guest | Data Warehousing | 0 | 08-07-2007 05:17 AM |
| How to generate a hbm file | Geek_Guest | Java | 1 | 05-15-2007 02:27 AM |
| What is the next number in the following sequence ? | psuresh1982 | Brainteasers | 2 | 01-05-2007 12:32 AM |
| Find the maximum number of numbers in the sequence | jamesravid | Brainteasers | 10 | 12-06-2006 05:10 AM |