How to connect to Sql Express by ip address?

  • Thread starter Thread starter MagicMax
  • Start date Start date
M

MagicMax

Good day!

Is anybody know how to connect to remote Sql Express by IP address from
C# program (main question is how to build connection string)?

I have to use Ip address instead of server name. I make some tests and
when I use server name then I can connect, when (in connection string)
I replace server name by server's Ip address I catch exception.

Tcp/ip is enabled...

Thank you!

Best regards, Max
 
MagicMax,

You just use the IP address instead of the ServerName.

That should work.

Cor
 
Back
Top