Sawd
Sawd

Reputation: 185

Connect on SQL Server with server & port

I'm trying to connect to my SQL Server with host AND port, but no success.

I've found that the default port for its services is 1433, but I've tried strings like .,1433 and localhost,1433 but it doesn't work, even in the SQL Server Management Studio interface. Without setting port in the string connection it works with no problems.

I'm making an app that connects to a SQL Server database, and that's why I need this to connect to any port I choose, including the default.

What am I doing wrong?

Upvotes: 1

Views: 569

Answers (1)

tschmit007
tschmit007

Reputation: 7800

you should specify a protocol

tcp:ip,port

Upvotes: 1

Related Questions