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=, port number;

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

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

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

Please submit your question and answer.