EXEC sp_makewebtask 'C:\Temp\test.html', 'SELECT top 10 * from sysobjects'
For more parameters:
https://technet.microsoft.com/en-us/library/aa238843(v=sql.80).aspx
Scripts, Articles, Relevant for DBAs, Consultants, BI, Data Scientists and Developers
EXEC sp_makewebtask 'C:\Temp\test.html', 'SELECT top 10 * from sysobjects'
For more parameters:
https://technet.microsoft.com/en-us/library/aa238843(v=sql.80).aspx