Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Terminal Services TABLEUPDATE Failure
Message
De
31/08/2005 05:14:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Terminal Services TABLEUPDATE Failure
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01045421
Message ID:
01045421
Vues:
85
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform