connection to db from the localhost

Discussion in 'ASP.NET / ASP.NET Core' started by ganeshnilgris, Feb 27, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. i have the site hosted on the discountasp . I have created some new files
    and need to test before i upload the files to the site. I have specified the connectionstring using tcp . Problem is i am not able to connect to the db
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    What is the connection string you are using and what is the exact error message you are getting?
     
  3. i resolved the problem. for any one who is thinking of the problem
    here is the solution

    1.<add name="ConnectionString2" connectionString="Data Source=tcp:<server name from your serviceprovider>;Initial Catalog=dbname;User ID=userid;Password=password />

    this helps u to connect to your remote server from localhost
     
  4. mjp

    mjp

    Thanks for following up on that.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page