Is there a way to generate Table/View scripts and save to a directory using Stored Procedure?
I've a list of all tables/views from different databases that I need to generate but it's in the thousands and doing the task > generate scripts... for each database is very tedious.
I've been looking into Stored Procedures if it is possible to create a script that would create and save all SQL Script using a List but still haven't found any existing samples.