I have a connection string for an Azure database. I'm hoping there is a place in SSMS where I can plop in that string and connect to it. Alternatively, if there is a way to do it with a T-SQL query, that would be even better.
2 Answers 2
Given the connection string:
Data Source=tcp:xxxxxxx.database.windows.net,1433;Initial Catalog=DatabaseName;User ID=zzzzz@xxxxxxx;Password=aaaaaa;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;Application Name=YourAppName;
Server name:
xxxxxxx.database.windows.net,1433
"xxxxxxx" represents the server nameLogin:
zzzzz@xxxxxxx
"zzzzz" represents your username, and "xxxxxxx" the server namePassword:
aaaaaa
represents your real password
As Pedro mentioned you will only be able to connect to an Azure database if your IP is white listed. The Microsoft has a step by step write up on how to do this in their new portal.
-
Where do you enter
DatabaseName
from the connection string?Mladen B.– Mladen B.2021年03月25日 22:31:15 +00:00Commented Mar 25, 2021 at 22:31
Additionaly to the previous answer you must open your IP on Azure SQL .. enter image description here
Explore related questions
See similar questions with these tags.