title | description | keywords | services | author | manager | ms.service | ms.custom | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|
Obtain the connection string from the Azure portal |
Obtain the connection string from the Azure portal |
sql connection,connection string |
sql-database |
dalechen |
craigg |
sql-database |
develop apps |
include |
07/13/2018 |
ninarn |
Use the Azure portal to obtain the connection string that's necessary for your client program to interact with Azure SQL Database.
-
Select All services > SQL databases.
-
Enter the name of your database into the filter text box near the upper left of the SQL databases blade.
-
Select the row for your database.
-
After the blade appears for your database, for visual convenience select the Minimize buttons to collapse the blades you used for browsing and database filtering.
-
On the blade for your database, select Show database connection strings.
-
Copy the appropriate connection string. i.e. If you intend to use the ADO.NET connection library, copy the appropriate string from the ADO.NET tab.
-
Edit the connection string as needed. i.e. Insert your password into the connection string, or remove "@<servername>" from the username if the username or server name are too long.
-
In one format or another, paste the connection string information into your client program code.
For more information, see Connection strings and configuration files.