This seems to be a limitation in DNN7 that you cannot use @ symbols in queries that you post under Host/SQL.
See this issue: https://dnntracker.atlassian.net/brow...
You can potentially take the procedure and break it down into smaller parts and execute them manually instead of via an stored procedure.
I will revisit this procedure at some in the future so I can address this as well.
For now you may want to try to run these individually each line at a time. I recommend a backup before doing that.
-- clean up the ScheduleHistory table
TRUNCATE TABLE {objectQualifier}ScheduleHistory
go
-- clean up the EventLog table
TRUNCATE TABLE {objectQualifier}EventLog
go
-- clean up the SiteLog table
TRUNCATE TABLE {objectQualifier}SiteLog
go
-- shrink the database file
DBCC SHRINKFILE ([emideast_db_data], 1)
go
-- shrink the log file
DBCC SHRINKFILE ([emideast_db_log], 1)
go
Best regards,
Aderson