@LawrenceT-MSFT The above scenario happens as the user in the source DB is not an login in the new SQL server where the database is being imported.
To fix this issue, you need to create an login on the new Server with SID of the user present in the source server.
Here are detailed steps you need to perform -
- After importing the DB on the new SQL server, please execute the below command.
select sid from sys.sysusers where name = <username>
<username> is the existing user in the database which you want to connect to the new server. - Please take the SID of the user and create a login with below script on the target server.
CREATE Login <username> WITH password = <Password>, SID = <SID received from previous step>
The login will be created with the same SID name and now you can use above created login to connect to database.
Regards
Navtej S