Stored Procedure to Copy Views from Current Database to Another
问题 I've been asked whether it's possible to create a stored procedure that will copy all views in the current database to another one (named via stored procedure parameter). For context, all databases have the same schemas. This situation arises thanks to a 3rd party risk modelling tool that generates each run's output as an entirely new database (rather than additional rows in an existing database). The user wants an easy way to "apply" their 20 or so custom views (from their "Template"