Reputation: 412
Like the title says. I have to connect to a database with some IP address, port , login name and login password.
I tried using the Server Explorer in the Visual studio 2015. The problem i have is that don't know how to add the port number in the connection. Shall the port number be added like ip:port or ip,port in the server name tab of Visual Server Explorer?
Also is there anyway to do this in the connectionStrings tag of WebConfig?
<connectionStrings>
<add name="ConnectionName1" connectionString="DataSource=xxx.xxx.xxx.xx:xxxx"/>
</connectionStrings>
Upvotes: 0
Views: 188