SQL Database Connection – To view Database Connection String using Visual Studio. Open your Visual Studio IDE and navigate to View-> SQL Server Object Explorer.
Then navigate to SQL Server Explorer from the left pane of your development Environment.
Connect to your server using the button with plus sign located at the top of the Server Object Explorer.
From the dialog box select the server you want to connect. Then click connect.
Navigate to your Database of which you want to view its connection string.
Click on your Database and go to properties located just below your solution explorer then go to connection string.
Copy connection string and paste it to your application for your database connectivity
Thank you for reading. Happy coding!!