Re: why excute query through JDBC much slow than query analyzer?
From: Frank Brouwer (frank.brouwer_nospam_at_trimergo.nl)
Date: 11/19/04
- Previous message: Joe Weinstein: "Re: Kinda urgent Connection error messages"
- In reply to: Pete Loveall: "Re: why excute query through JDBC much slow than query analyzer?"
- Next in thread: Andrew: "Re: why excute query through JDBC much slow than query analyzer?"
- Reply: Andrew: "Re: why excute query through JDBC much slow than query analyzer?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 20 Nov 2004 00:48:54 +0100
If you use that be aware of the fact that language specific characters (like
the Euro sign) are not stored in the database because they are unicode.
Either do not use language specific characters or use nvarchar for your
strings (ntext).
Regards,
Frank.
"Pete Loveall" <psl@ametx.com.NO_SPAM> wrote in message
news:eYCEgTnxEHA.3908@TK2MSFTNGP12.phx.gbl...
> Set SendStringParametersAsUnicode=false This defaults to true which
causes
> searches to be done as N'text on non-unicode keys. This can cause massive
> slow downs in execution.
>
> Pete Loveall
> AME Corp.
>
> "Andrew" <Andrew@discussions.microsoft.com> wrote in message
> news:C14CE83B-A2A2-4DEB-9E03-00F9893458C8@microsoft.com...
> >
> > I run a query through JDBC driver, it takes me about 60 seconds. But I
> > simpy
> > cut/paste the query to the query analyzer (on the same machine), I got
> > less
> > than 1 second. Why got so big difference?
>
>
- Previous message: Joe Weinstein: "Re: Kinda urgent Connection error messages"
- In reply to: Pete Loveall: "Re: why excute query through JDBC much slow than query analyzer?"
- Next in thread: Andrew: "Re: why excute query through JDBC much slow than query analyzer?"
- Reply: Andrew: "Re: why excute query through JDBC much slow than query analyzer?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|