Yes... right click on the database in SSMS and click on [Tasks], [Generate Scrips], and then follow your nose. Of course, that just to get you out of the woods. What you really need to do is start treading database code as actual code and start using source control on it.
--Jeff Moden
Change is inevitable... Change for the better is not.