Hi,
I am sorry to hear you have troubles with NTA installation. The error you have quoted is most probably caused by remnants of older NTA installation (there are some old tables left in SQL DB). To solve the problem either uninstall NTA 4.0 from NPM server, temporarily install NTA 3.8.0 and upgrade it to NTA 4.0 or contact SolarWinds support, they can provide you a tool to clean the SQL DB.