🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #139

Re: JDBC:ODBC - Feature not implemented?

#139
From: Alexey Kuznetsov
Date: Thu, 19 Jul 2001 07:38
25 lines
2211 bytes
Gee, it works. Thanx!

"Lee Fesperman" <firstsql@ix.netcom.com> wrote in message
news:3B567D95.6F72@ix.netcom.com...
> Alexey Kuznetsov wrote:
> >
> > Hello, All !
> >
> > Suggest please why the following code throws an exception:
> >  ...
> >   Connection con = DriverManager.getConnection("jdbc:odbc:DB;uid=sa;");
> >   PreparedStatement ps = con.prepareStatement("INSERT INTO log VALUES
(?,
> > 1)");
> >   ps.setDate(1, new java.sql.Date(System.currentTimeMillis()));
> >   ps.executeUpdate();
> > ....
>
> Try ps.setTimestamp(1, new java.sql.Timestamp(...
>
> --
> Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
> ===================================================================
> * Check out Database Debunkings (http://www.firstsql.com/dbdebunk/)
> * "The Forum Where Database Matters Are Set Straight"
Technical Details
Message-ID: <9j5v3o$s0a$1@news.sovam.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.sovam.com!sovam!not-for-mail
References: <9j35gr$8rj$1@news.sovam.com> <3B567D95.6F72@ix.netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb99b,cc7d5a6bac724d41
X-Google-Attributes: gidfb99b,public
X-Google-Thread: 113ae9,cc7d5a6bac724d41
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 107d46,cc7d5a6bac724d41
X-Google-Attributes: gid107d46,public
X-Google-Thread: 10a146,cc7d5a6bac724d41
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2001-07-18 23:50:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.sovam.com!sovam!not-for-mail
From: "Alexey Kuznetsov" <getweb@pochta.org>
Newsgroups: comp.lang.java.help,comp.lang.java.databases,comp.lang.java.programmer,cz.comp.lang.java
Subject: Re: JDBC:ODBC - Feature not implemented?
Date: Thu, 19 Jul 2001 14:38:56 +0700
Organization: Golden Telecom
Lines: 27
Message-ID: <9j5v3o$s0a$1@news.sovam.com>
References: <9j35gr$8rj$1@news.sovam.com> <3B567D95.6F72@ix.netcom.com>
NNTP-Posting-Host: ts2-a41.krasnoyarsk.dial.sovam.com
X-Trace: news.sovam.com 995524537 28682 195.239.172.41 (19 Jul 2001 06:35:37 GMT)
X-Complaints-To: abuse@online.ru
NNTP-Posting-Date: Thu, 19 Jul 2001 06:35:37 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600