SQL OLEDB Provider problem
- From: "PullWood" <a.tirabosco@xxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 16:52:56 +0200
The situation is the following on a C++ developed service connecting to SQL
Server 2000:
1 - Same queries using SQLServer 2000 Provider ODBC Driver with ADO ...no
problem
2 - When using SQL OLEDB Provider along with ADO I got several strange
things:
The CursorLocation Param:
Using a Client Side Cursor I've No Problem, but perfomances are really
worst.
Using a Server Side Cursor I got a strange behavement:
When I use a CursorType = adLockOptimistic in those queries the outcoming
recordset doesn't support updating at all.
when Using a CursorType = adLockPessimistic in the same queries, not working
with the adLockOptimistic Cursor, work...but only when I debug with
VisualStudio6 Opened. When using the same debug process(is a service) in
run-time mode (without visual studio opened) it fails for each update when
putting value in the field object. That with an an error saying the the
provider or the cursor type do not support updating on that recordset. The
error given is the Ox800A0CB3
and the query example where I get this problem is :
"SELECT * FROM DB_Titoli_RiskMap WHERE Date_Agg IN (SELECT max(Date_Agg)
FROM DB_Titoli_RiskMap ) ORDER BY ID_ISIN"
On the recordset coming from this query I get the problem.
Anyone can explain to me such a strange behaviour to find out a solution ?
Thank's a lot for anyone so gentle to anwer me..
Bye, Andrea
.
- Follow-Ups:
- Re: SQL OLEDB Provider problem
- From: Stephen Howe
- Re: SQL OLEDB Provider problem
- Prev by Date: Requery DataAdapter
- Next by Date: Accent insensitive dataview.rowfilter
- Previous by thread: Requery DataAdapter
- Next by thread: Re: SQL OLEDB Provider problem
- Index(es):
Relevant Pages
|
|