Here is my problem; I have a hosted and published database on godaddy servers. I have also published my website. However, when I tried to use one of visual studio’s tools such as chart, or data view or any tool that wants me to specify a data source, I get the
"error 40: could not open a connection to sql server".
In most cases, I have worked around this issue by writing the code instead of using these tools on the “.cs” sections, but now I need to update my database model and I really would prefer not to write that amount of code. The connection string I choose works perfectly, it can update and gather values from database on the published website. But when I Right click on the models section and select “update model from database” the update wizard cannot access the database with the very same connection string. Like I said, this problem occurs on every tool that wants me to select a data source.
Is this a permission issue regarding visual studio or something else?
Thanks in advance.
By default, Go Daddy does not allow access to your database from anything other than your shared hosting account. We allow you direct database access from other locations if you select that option at the time you created the database. If you did not select this option when you created the database you will never be able to connect to it from a location other than your hosting account. If you did not select this option at the time you created the database and need to add that option you will have to create a new database with the option selected.