Closed
Description
If this parameter is populated, check to see if a linked server exists by this name. If not, print an error.
If the linked server exists, use @OutputDatabaseName, @OutputSchemaName, and @OutputTableName to write the results.
We don't have to do big time error checking here - no need to get fancy and check for the database and the schema for now, can always add that in a later version.
Use case: someone runs the stored procedures regularly as an Agent job, and writes the results to a central server for reporting purposes.