Oracle: Sequence or Trigger?

Results 1 to 2 of 2

Thread: Oracle: Sequence or Trigger?

  1. #1
    Join Date
    Dec 1969

    Default Oracle: Sequence or Trigger?

    Im auto numbering a field in oracle.<BR>Right now i have a trigger set up to<BR>call the sequence every time a new record<BR>is inserted. This works fine, but is it<BR>really neccassary to call the sequence from<BR>within oracle? Or should I call the sequence<BR>from within the ASP page. What are the pros/cons?<BR><BR>Both of these options work fine im just trying to<BR>justify using triggers for this simple task.<BR><BR>Thanks!<BR>Droidman

  2. #2
    Join Date
    Dec 1969

    Default RE: Oracle: Sequence or Trigger?

    Keep calling the sequence in the trigger or wire up the sequence to the field default value. Calling a sequence manually from ASP or another client program is usually just adding more network traffic for no real gain.<BR><BR>regards,<BR><BR>Dave Kawliche<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts