fix case of sp_MSforeachtable#65
Conversation
|
Hello, I'm curious of how you did manage to make it work ? My Azure SQL Database freshly created does not know either "sp_MSforeachtable" or "sp_msforeachtable". Did you add it manually ? Thanks in advance. |
|
So, from what I found when I first stumbled onto this, it seems there's a discrepancy between Azure SQL and other versions of SQL Server. Since This thread has some more details: https://stackoverflow.com/questions/46651612/deploy-database-to-azure-sql-fails-sp-msforeachtable-not-found |
|
Ok thanks, so you are not using Azure SQL Database. Thanks for your help. |
|
This fix works for us, thanks |
Found this while trying to use loaddata. If the database is using a case-sensitive collation, then operations that disable check constraints will fail because the stored procedure 'sp_msforeachtable' can't be found. Changing the case to 'sp_MSforeachtable' resolves the issue.