Re: Java Datetime Strategies with SqlServer
From: Michael Rauscher (michlmann_at_gmx.de)
Date: 05/12/04
- Next message: Oscar kind: "Re: A specific question about the JDO specification and object-id classes"
- Previous message: Alex Molochnikov: "Re: MySQL JDBC driver - implications for non-GPLed apps"
- In reply to: Ian Walsh: "Java Datetime Strategies with SqlServer"
- Next in thread: Sampsa Sohlman: "Re: Java Datetime Strategies with SqlServer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 12 May 2004 17:37:00 +0200
Ian Walsh schrieb:
> Hi,
>
> I'm new to Java (from a .Net background) and I'm having problems
> inserting a 'datetime' field into a SqlServer Database. I can insert a
> date (01/01/2004) and a time (eg 01/01/1970 15:23) but not a Datetime
> (eg 01/01/2004 15:23).
>
> Can I do this using Java.Sql? If not, what is the usual strategy for
> inserting datetime values into a SqlServer database.
>
> All help appreciated.
Try java.sql.Timestamp.
Bye
Michael
- Next message: Oscar kind: "Re: A specific question about the JDO specification and object-id classes"
- Previous message: Alex Molochnikov: "Re: MySQL JDBC driver - implications for non-GPLed apps"
- In reply to: Ian Walsh: "Java Datetime Strategies with SqlServer"
- Next in thread: Sampsa Sohlman: "Re: Java Datetime Strategies with SqlServer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|