Hi @Ashraf Khan,
Welcome to Microsoft Q&A forum.
As I understand, you are getting error when migrating sql database to azure database while exporting data tier application like bacpac file.
I assume you are following the same process as mentioned here in the documentation:
https://learn.microsoft.com/en-us/sql/relational-databases/data-tier-applications/export-a-data-tier-application?view=sql-server-ver16
and getting below error:
Error validating element [dbo].[int ]: Column: [@tWebCheckins].[TenantID] has an unresolved reference to Built-in Type [dbo].[int ].
Could you please check below things:
1). Make sure if you are having a View like:
...FROM [Database].[dbo].[Table]
then replace it with
...FROM[Table]
Since you may be importing the bacpac into a different database name so the reference to [Database] might not be valid.
2). If there are Stored Procedures, use Table name itself than using Table alias.
3). Check source and target schema names for example in your case they look different:
[@tWebCheckins].[TenantID] and [@tAttendance].[TenantID].
4). Try latest version of SSMS to perform migration.
Let us know if any of the above helped.
If not, share your observations.
Thanks