Click here to Skip to main content
16,019,764 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to connect sql server when IP is not Static from client side
vb.net
Posted

Use the URL instead of an IP address, and provide the required login details.
Data Source=TheDomainName.com;Initial Catalog=TheDataBaseName;Persist Security Info=True;User ID=UserID;Password=UserPassword
 
Share this answer
 
Comments
jnan shankar tewary 6-Oct-16 4:47am    
Thanks!
OriginalGriff 6-Oct-16 4:53am    
You're welcome!
for your standalone pc not remote pc

use '.' insted of your ip address in connection String

Like Below

connectionString="Data Source=.;Initial Catalog=xdb;Persist Security Info=True;User ID=sa;Password=*********"
 
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