Click here to Skip to main content
15,915,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI, i have upload my Website and also have upload my Database, but this is first time to upload. Every thing is working properly but i have problem to configure my Connection string. I make my connection string at local machine but don't know how to configure at Domain can any body Tell my what query i shoud have to write on web.config?

HTML
<connectionStrings>
  <add name="dbs" connectionString="Data Source=WALEED-PC;Initial Catalog=MakInternational;Integrated Security=True"
   providerName="System.Data.SqlClient" />
 </connectionStrings>


this is my code at local machin, kindly please tell me what changes i have to make on domain?
Posted
Comments
abbaspirmoradi 17-Aug-13 17:00pm    
Talk with your host's Administer and give from him right ConnectionString.He can help you
Waleed Anjum Bangash 17-Aug-13 17:18pm    
Thanks :)
fyulaba 18-Aug-13 16:02pm    
If your db is hosted on the same machine as the app try replacing "WALEED-PC" with "localhost" in the connection string, otherwise follow. Abbaspirmoradis advice.

1 solution

You your Database server IP Address or Domain Name, to replace WALEED-PC
 
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