Trying to connect to an SQL db using ASP.Net on godaddy

I am using Visual Studio 2008 and trying to develop an applicaiton that connects to an MS SQL database.  The site and database are hosted at  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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This will show you how to build your connection string.

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.
nelsonhaleAuthor Commented:
Thanks for the response.  I can get the connection string from Godaddy:  Data; 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.
That connection string is stored in your app config file.  Just add the second one in (commented out) and swap them on deploy.  Or, have a different build set that builds with a different option.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nelsonhaleAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.