Live Chat Icon For mobile
Live Chat Icon

My SQL server runs on a non-default port. How can I specify this port in my connection string?

Platform: WinForms| Category: Data Binding

The data source component of your connection string should contain the port right after the IP address (or name). It should be separated from the IP by a comma.


data source=192.168.123.1, port number;

Take a look at this web site for great information on several connection strings.

http://www.connectionstrings.com/

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.