Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My database is in a Server which has dynamic IP address.
can I give server name instead of IP address in connection string.
Posted

1 solution

That is very surprizing that your server has a dynamic IP.

Anyways The solutions could be :

1. Instead of providing IP, provide servers hostname as 01HW2001B.DOMAIN.COM
2. Most of the time providing Sql server instance name also works e.g. 01HW2001B-express
3. Get a static IP ... last option.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900