Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Terminal Services TABLEUPDATE Failure
Message
From
31/08/2005 05:14:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Terminal Services TABLEUPDATE Failure
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01045421
Message ID:
01045421
Views:
87
I'm getting TABLEUPDATE() failures when two or more users simultaneously attempt to enter, then save, separate new client records in my application while running in Terminal Services sessions on the same server. This does not occur in this app when it is run in a traditional client/server mode on separate work stations pointed at common data on a file server.

I use either APPEND BLANK or INSERT INTO to add the new record, with code like this to generate a new integer surrogate key:
DO WHILE !FLOCK()
	WAIT WINDOW 'Adding Record' TIMEOUT 1
ENDDO

SET ORDER TO (PK)

lnTempID = n && next ID # from a lookup table

DO WHILE SEEK(lnTempID) OR KEYMATCH(lnTempID,TAGNO(PK),tcTableName)
	lnTempID = lnTempID + 1
ENDDO

UNLOCK
Is there something inherent in Terminal Services operation that would cause this scheme to fail?
Ray Roper
Next
Reply
Map
View

Click here to load this message in the networking platform