Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

GoDaddy Database Connect example?

$
0
0

Does anyone have a nice CLEAR (perhaps just a default.aspx and web.config) showing how to connect to a SQL Server 2000 database on GoDaddy's shared hosting? I have the whsql.... stuff and userID and password but, so far, I've not successfully actually reached the database from a default.aspx form -- even the simplest of grids that I tested out on the local system.

I've added a couple of tables to the standard ASP.NET database (on the theory -- is that true? -- that other things can co-exist there) and just want to toss the entries on the hosted database into the same grid.  Here are the two ConnectionStrings:

 <!--<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>-->

<

addname="ConnectionString"connectionString="Server=whsql-v16.prod.mesa1.secureserver.net Initial Catalog=DB_138***; User Id=*****; Password=*******; Trusted_Connection=False;"providerName="System.Data.SqlClient"/>

where ***s have obliterated real things known to connect properly.

There is some confusion betwen "Initial Catalog=DB..." and "DATABASE=DB..." and GoDaddy support has unfortunately gone into a mode of (and here I quote!) "we are unable to assist with scripting support or debugging."

many mahalos (thanks) in advance from the garden isle of Kauai ... :)  KevInKauai


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>