Reputation: 1
I've been following this tutorial on how to create a backend service for my xamarin application: https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-xamarin-forms-get-started
I have managed to create the Web App Service and have connected it to my Azure SQL database and have successfully initialized the Easy Tables function for my service.
However, when I try to create the TodoItem table, I receive the following error message:
Table creation error :
There was an error while creating table 'TodoItem'. '{"Code":"InternalServerError","Message":"{\r\n \"Message\": \"An error has occurred.\",\r\n \"ExceptionMessage\": \"CREATE TABLE permission denied in database 'master'.\",\r\n \"ExceptionType\":
I'm not sure as to why I'm receiving this error, and I'd appreciate any help.
Upvotes: 0
Views: 158
Reputation: 2351
Your app seems to be connected to master.
CREATE TABLE permission denied in database 'master'
Add database name to connection string.
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Upvotes: 1
Reputation: 1638
Edit your Azure SQL DB create permission for this app service.
Upvotes: 0