On 8/14/07, Hyatt, Gordon <Gordon.Hyatt@xxxxxxxxxxxxxxxxxx> wrote: > Scott and Tom, > > Thanks for your replies. Yes, the missing select keyword was simply a typo on my part. > > The code that I sent was simplified (I didn't include all the fields, most of which are character varying). I've spent all day yesterday trying to make it work. (I'm not sure if I mentioned this, but I using 8.2.4 on Win2000 SP4). > > What else could be causing this code to correctly return the next sequence number but not insert anything into the table? Can you post a proven failure case? One that you can put into a nice freshly created db and it will fail? Without that, I can't think of much we can do to help. ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend