0
When executing the (T-SQL) DROP command below in SQL server the following message is displayed:
Cannot drop the table '[dbo]. [TABLE]', because it does not exist or you do not have permission.
Commando
EXEC sp_MSForEachTable 'DROP TABLE [?]'
However when executing another T-SQL command or a basic DROP Table the above error message is not displayed and the command is executed correctly.
DROP TABLE TABELA
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT all'
Both of the above commands work, for what reason EXEC sp_MSForEachTable 'DROP TABLE [?]'
need a permission? and how to give this permission?