nelsonhale
asked on
Trying to connect to an SQL db using ASP.Net on godaddy
I am using Visual Studio 2008 and trying to develop an ASP.net applicaiton that connects to an MS SQL database. The site and database are hosted at godaddy.com. Since godaddy does not accept remote connections to the database I am having trouble configuring a connection that works. Can anybody walk me through the process of connecting. From my past experience with Coldfusion I could setup a testing server locally and using a DSN I could test my app locally and get it would work using the DSN once uploaded. I have created a DSN on godaddy for this database but do not know how to use it in ASP.NET. Thanks
ASKER
Thanks for the response. I can get the connection string from Godaddy: Data Source=p3swhsql-v20.shr.ph x3.secures erver.net; Initial Catalog=BuildItWithLogs; User ID=BuildItWithLogs; Password='your password';
I have a simple data grid that I am trying to fill. In visual studio I can create Data Connection to hit my local database ( a simple access db). I'm not sure using the data connection wizard how I create a separate connection using connection string. If I choose SQL server as the Data Source it doesn't let me save this connection because it can not actually be verified, I'm assuming. Again because godaddy is not allowing remote connections. I've also tried to setup using ODBC but run into the same problem. Thanks for your help.
I have a simple data grid that I am trying to fill. In visual studio I can create Data Connection to hit my local database ( a simple access db). I'm not sure using the data connection wizard how I create a separate connection using connection string. If I choose SQL server as the Data Source it doesn't let me save this connection because it can not actually be verified, I'm assuming. Again because godaddy is not allowing remote connections. I've also tried to setup using ODBC but run into the same problem. Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
http://www.connectionstrings.com/?carrier=sqlserver2005
Then all you do is have two different connection strings in your app. A "LOCAL" one for testing, and your hosted one for when you deploy.