Generates a clickable link for downloading a file.
The Get Database File call for the snippet is triggered when the link is clicked.
DECLARE @LinkGuid uniqueidentifier;
EXEC SoftadminSnippet.DeclareLink
@LinkGuidOut = @LinkGuid OUTPUT;
SELECT SoftadminSnippet.DatabaseFileLink(@LinkGuid, '<b>Download file</b>', 'File.txt', '050DFB5D-6EB2-4C39-B802-2BCC1399EA2C', NULL) AS Html;