I have WinForms application that uses ADO.NET to communicate with MySQL database. Some sql queries are 2000 lines long, some are generated dynamically. This application connects to existing database, and uses only some of it's tables.
It needs to be migrated to it's own server, so I need to know what columns in what tables does it use (so we don't need to clone entire database, but only needed portion of it). I don't really know how to do this, besides going though all queries manually and noting table and column names. Is there a better way to do it?