Hello there,
Have you tried any third-party tools like Systool or EaseUS Server Migration Software for the migration?
To insert into values in One database table into another database table running on the same SQL Server
insert into dbo.onedatabase.FolderStatus
(
[FolderStatusId],
[code],
[title],
[last_modified]
)
select [FolderStatusId], [code], [title], [last_modified]
from dbo.Twodatabase.f_file_stat
Transfer data between SQL database servers securely by end-to-end service https://learn.microsoft.com/en-us/answers/questions/578717/transfer-data-between-sql-database-servers-securel.html
Transfer logins and passwords between instances of SQL Server https://learn.microsoft.com/en-us/troubleshoot/sql/security/transfer-logins-passwords-between-instances
----------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer–