Thank you for your help CALVIN
Logging on to Server...
Loading Common Resources...
Response from Services
Authorisation failure. User is not authorised to perform Read operations on the Metadata.QueryTemplate class type.
The above error occurs after the below given query is run
update tps_user set tps_deleted = '0' where tps_name = 'testuser'
update tps_password set tps_deleted = '0' where tps_guid = (select tps_password_id from tps_user where tps_name = 'testuser')
Please can you help me with this ?