Re: insufficient key column information for updating or refreshing
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Mon, 30 Oct 2006 21:29:39 -0600
I have a TAdoDataset that uses a couple of MS SQL 2k views as the datasourceUse TadoDataset.Requery instead of TadoDataset.Refresh
(inner joined). The views themselves are a bit complex. The final result
returns columns that include the primary key of one of the base tables and
the rows that are returned are absolutley unique. There is no possibility of
duplication. I am able to navigate the grid that displays the dataset
without any trouble. The grid is not editable of course because the data
source is too complex. There are a couple of instances on this form where I
need to refresh the dataset. When I do so I get "insufficient key column
information for updating or refreshing"
If I set the dataset to active = false and turn it on again that works fine
but I really don't want to do that.
I just need to refresh it so that aMaybe TBetterAdoDataset will work for you here. It allows for you to easily
couple of the columns are updated with new numbers. What can I do to get
refresh to work? Is there a way to use TBetterAdo here that would solve my
problem?
attach a Resync Command which is what you need to use Resyc with any Join
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- insufficient key column information for updating or refreshing
- From: Keith G Hicks
- insufficient key column information for updating or refreshing
- Prev by Date: Re: insufficient key column information for updating or refreshing
- Previous by thread: Re: insufficient key column information for updating or refreshing
- Index(es):
Relevant Pages
|