Create a subreport which has the following as a Command object (data source):
SELECT name = DB_NAME()
Place it in the report footer.
This assumes that you meant the Report Footer, again, you don't take time to state specifics, which wastes yours and others time.
If you need it in the page footer, palce the subreport in the page footer, and then create a shared variable to return it to the main report.
-k