5

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.

Paul White
95.3k30 gold badges439 silver badges689 bronze badges
asked Feb 18, 2016 at 18:48

2 Answers 2

7

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;

Connection screen shot

  • Server name: xxxxxxx.database.windows.net,1433 "xxxxxxx" represents the server name

  • Login: zzzzz@xxxxxxx "zzzzz" represents your username, and "xxxxxxx" the server name

  • Password: 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.

answered Feb 18, 2016 at 19:07
1
  • Where do you enter DatabaseName from the connection string? Commented Mar 25, 2021 at 22:31
2

Additionaly to the previous answer you must open your IP on Azure SQL .. enter image description here

answered Feb 18, 2016 at 19:31

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.