On the computer on which you received the SQL Command Failed dialog box, open the most recent Historical Reports log file. Search for the error number. The cause of the error will appear near the error number. You can use this information to resolve the problem.