Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change values in a table
Message
From
24/10/2008 16:07:26
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356890
Message ID:
01357047
Views:
24
The record is not deleted. The fields be updated have regular indexes. The field for which I get the error message has a candidate index.
It is not in the update list. My command is
	UPDATE relpos SET ;
		ccomment	= Thisform.ccomment		,	;
		corderby	= Thisform.orderby		,	;
		crecoeved	= Thisform.received		,	;
		creleased	= Thisform.released	,	;
		cvname		= Thisform.vname
>>>>The user is logged in for a particular site (i.e. A) and wants to change all values except the site code. In a from I can find the record, When I try to change the I get an error message that the uniqueness of the record is violated. I use the UPDATE command. Is there a may of updating the record or do I have to tell the user to log on with that site (my current statutory)?
>>>
>>>See if you have an empty deleted record in this table in addition to Ed's suggestion. Pack the table if this is the case (requires exclusive access).
>>
>>It is better having NOT DELETED() filter on the candidate index.
>
>I don't like having filters on indexes at all. But you're right, of course.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform