Reputation: 1156
When I try to open my Azure SQL Server database in Visual Studio
and then use my Azure user account (I already added this user to SQL Owner role) [email protected] I got the following error
Cannot open server "DomainName.com" requested by the login. The login failed. (Microsoft SQL Server, Error: 40532)
Upvotes: 5
Views: 17963
Reputation: 321
Just to summerize the above:-
Upvotes: 3
Reputation: 151
In my case the problems were:
Also I forgot to save the rules (there is a not that clear "save" button or string in the top right above the rules)
I was using id + password as [email protected] + mypass; I would get a complain about not able to access "... .hotmail. I changed tue aID to my name only.
Also I was not using the full string "tcp:my-database-name.database.windows.net,1433" I guess it is necessary, not sure.
Fixed the 3 points above it worked.
Upvotes: 1
Reputation: 1156
It seems to be I need to use [email protected]@AzureSQLInstanceName as a user name, and my domain password as password. I got that from the database connection strings section on Azure portal.
Upvotes: 15
Reputation: 12174
Make sure you've added the IP address you are calling from the to SQL Firewall: Your Server >> Settings >> Firewall Settings.
Upvotes: 4