Appendix I: Database Maintenance
In order to keep your WSUS server functioning correctly, you should have a maintenance plan that includes re-indexing the database on a regular basis, preferably at least once a month.
To use this script with Windows Internal Database, you should run the following command:
sqlcmd -S np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query –i <scriptLocation>\WsusDBMaintenance.sql
where <scriptLocation> is the directory where you have copied the WsusDBMaintenance script.