Wrox Programmer Forums
|
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2005, 09:41 AM
Registered User
 
Join Date: Jan 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Oracle Sequence No , Date format

Hi Thearon,
Reference to the time sheet application chapter 12 page 374(ORACLE) I want to cahnge in procedure to accept sequence.nextval instead of
(inTimeSheetID) which is your primary key.
Please advise on how to change the procedure.
I have a trigger to insert the next id(like auto number in access or as identity in SQL).
Second question about ORACLE date:
I have a date field when I enter date as
to_char(1/1/20004,'mm/dd/yyyy') I got error message:
ORA-01843: not a valid month
So I have to write the date as (01-jan-04).
Please advice,
Thanks
Sam



 
Old January 21st, 2005, 11:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I think nextval will lose its place if the server is rebooted. I'm not aware of a nice feature like autonumber or identity for oracle. Can you post your procedure?

This might help:
http://www-db.stanford.edu/~ullman/f...e/or-time.html

01-JAN-04 is the default format. What we do is have something like this:

Please enter a date (01-JAN-2004): <textbox here>

 
Old January 23rd, 2005, 06:01 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Sam,

I think the date problem has been answered and the link provided has some useful information. As far as changing the design of the schema and primary keys, I'm afraid you're on your own for that one. My suggestion would be to work the exercises and get everything working. Once you understand the concepts and how everything works then you should feel free to experiment with the design and primary keys.

Thearon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Sequence Generator Peso SQL Server 2000 8 May 18th, 2006 02:01 PM
Sporadic problem with Oracle selecting SEQUENCE ID bluefossil Oracle ASP 0 April 6th, 2006 05:44 AM
Sequence grant in Oracle rekha_jsr Oracle 1 January 3rd, 2005 12:50 AM
Date Format problem in Oracle ppenn Oracle ASP 1 May 10th, 2004 06:00 PM
How to query Date format in Oracle samlow82 ADO.NET 1 July 18th, 2003 04:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.