With all users logged off from Dynamics GP, these tables should have no records at all. Therefore, ensure that all the users are out of Dynamics GP, and run the following delete statements;
DELETE DYNAMICS..ACTIVITY
DELETEDYNAMICS..SY00800
DELETEDYNAMICS..SY00801
DELETETEMPDB..DEX_LOCK
DELETETEMPDB..DEX_SESSION