Click here to Skip to main content
15,898,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I developed Asp.net Application and that hosted on free hosting site(somee.com) now i want to give connection string of my local pc to web site? what is connection should i give?
my database is on:
Data Source=.\SQLEXPRESS;AttachDbFilename=E:\Medical_Mathura\App_Data\Business_Medical.mdf;Integrated Security=True;User Instance=True
Posted
Updated 23-Aug-13 22:28pm
v2

Hi,
May be it will help u.and also look into Your Solution[^]
C#
connectionString="Provider=SQLOLEDB;
Data Source=000.000.000.000;
Initial Catalog=yourDBName;
UID=******;
PWD=******"




-JMD :-)
 
Share this answer
 
Don't you think it is a bad idea to give connection string of your local pc to the live website which is running on some hosting server? Your local connection string won't work at all until and unless you are using some static IP and that static IP is properly registered. My suggestion is not to do this at all. Never ever.
 
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