• Change the DBName in the temp table to a data type of SYSNAME this will then eliminate this error from happening.