Sage X3 V65 - Invalid object name 'SCHEMACODE.SEQ_ALOGIN'. : SQL Server Error

SOLVED

We got a virtual machine from client with Sage X3 v65 Application server.

The database server was on a different server.

In this local copy of VM we have updated the configuration files to point to local database.

When we try to log into Sage X3 we get the error below.

Any ideas what  might be causing the  error

[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid object name 'SCHEMACODE.SEQ_ALOGIN'. : SQL Server Error

 Click Ok we then get 

@X3.TRT/GESUSER$adx(1558) :