Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > MySQL   »   SQL 2000 SP3 Issue

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Nov 26, 2003, 05:45 AM
tadds
New Member
tadds is offline
 
Join Date: Nov 2003
Location: New York
Posts: 10
tadds See this member's comment history on his/her Profile page.
Send a message via ICQ to tadds
SQL 2000 SP3 Issue

REWARD: $40.00 to anyone who can solve this. Microsoft is having difficulty with the resolution!!!

The Problem... :-/
The problem experienced when we upgraded to SQL Server 2000 and is isolated to a very obscure set of circumstances.  When a nested recordset is created using the same table in both the parent and child recordsets AND that table has a primary key on an identity column which is not covered by the table's non-unique clustered index AND the connection variable is re-used when opening each recordset THEN SQL Server 2000 (but not 7.0) implicitly converts the child recordset to a server-side cursor and somehow looses track of, or just ignores, the key column HENCE producing a WHERE clause for the child recordset's update that does NOT contain the primary key column THUS generates a "-2147467259 Key column information is insufficient or incorrect. Too many rows were affected by update."

The Workaround...
There are at least three ways to fix this specific problem (not including the obvious re-design options).  When the connection is reset for each recordset, or when the "Update Criteria" property of the child recorset is set to "adCriteriaAllCols", or when the primary key column is covered by the clustered index (unique or not, doesn't matter), the problem goes away!

The Challenge...
Although we have gotten our process to run, we still don't know what the full impact on the rest of the app is.  So, we need to know exactly WHY this behavior changed when we upgrade to SQL Server 2000.  Personally, I'm leaning toward this being an undocumented bug in SQL Server 2000 SP3.  But, I haven't been able to find anything definitive on it yet.  So, I'm forwarding the attached files (below) to Microsoft to get them working on  it.  

Hint...
This issue does NOT appear to be ADO-version-related.  I've tested it every way possible using ADO 2.5, ADO 2.6 and ADO 2.7 - all gave same results.

Reply With Quote
 
     



Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Paternity Issue keriellen2 Women's Health 3 Jul 3, 2007 06:47 PM
Debt issue-what do you do first and then.. twdw1758 Bankruptcy & Debt 4 May 24, 2006 05:41 AM
Tax filing: H1 with H4 issue solidp Taxes 1 Apr 5, 2006 05:39 PM
Need help with possible fraud issue Tritius Credit 2 Oct 31, 2005 06:02 AM
is this a issue ? traka Spyware, Viruses, etc. 7 Jun 6, 2005 04:31 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 07:18 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.