Your best bet will be using DMA (https://www.microsoft.com/download/details.aspx?id=53595).
This will help you assess your database for Upgrade compatiblity and flag all the breaking changes in the database. Once you feel comfortable with the changes(if any) you can use the same to migrate the Database to Newer SQl version.
Refer the following : https://learn.microsoft.com/en-us/sql/sql-server/migrate/guides/sql-server-to-sql-server-upgrade-guide?view=sql-server-ver16
Please accept as Answer if this helps :)