I want to migrate database SQL Server to DB2
Accepted answer
Open the documentation (Library>Engineering Lifecycle Management documentation. Select your version. In the search bar type "database migration".
There is a built in mechanism to export the database and to import the exported data. You do not have to know how the database is structured.
Comments
There are some queries that make direct access to live tables to extract data (I know it's not recommended). If I change databases, do SQL Server queries change with respect to DB2 queries? Does the table structure (table and field names) change?
I do not know. My expectation would be, the tables are similar for different databases. But there are some differences such a keys etc. The database schema/table details are not published, so I do not know. So it might be possible that you need to test your reports.