JDBC to Microsoft SQL
- From: bunka.munka@xxxxxxxxx
- Date: Sat, 29 Oct 2005 22:32:33 +0200
Hi !
I am experiencing some problems with MSSQL (ver 8.0).
While I can execute sub-select statement directly on a MSSQL server,
I cannot do the same thing in JDBC.
Like the following statement( JDBC throws exception about mismatched
type)
select idcolumn,a,b,c FROM mytable WHERE idcolumn = (SELECT max
(idcolumn) FROM mytable
I could get the result other way too (like top 1 and descend sort
etc..), but this would be the fastest way and I want to use it.
I am connecting to database server without any settings, just IP,
username and password.
On mysql, I had a several options I could specify in a connect string,
so the server acts different.
Is there any setting I can specify which can help me ? Where can I
read all parameters I can specify when connecting via JDBC to Microsoft
SQL ?
Thx.
.
- Follow-Ups:
- Re: JDBC to Microsoft SQL
- From: Roedy Green
- Re: JDBC to Microsoft SQL
- From: Rhino
- Re: JDBC to Microsoft SQL
- Prev by Date: Re: [Back Porting] Classpath and other
- Next by Date: Open Source English Language Parser
- Previous by thread: Re: [Back Porting] Classpath and other
- Next by thread: Re: JDBC to Microsoft SQL
- Index(es):
Relevant Pages
|
|