Geeks Talk

Prepare for your Next Interview




Advice to generate a sequence number from VB

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 ...


Go Back   Geeks Talk > Software Development > VB.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-13-2007
Junior Member
 
Join Date: Aug 2007
Location: india
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
madhu sudhan is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-20-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,426
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
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.
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved