Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 16th, 2006, 05:40 PM
Authorized User
Join Date: Dec 2005
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default MS Access/Go Daddy Connections

Does anyone have a great connection script to use with GoDaddy? I'm using Dreamweaver MX to develop with....and this is kicking my arse!!! Please help! I'm at my wits ends, and GoDaddy's tech support's favorite line is "We don't support scripting!" The example connection string sux big time.

Thanks in advance for any and all help!
Old September 18th, 2006, 12:32 PM
Wrox Technical Editor
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts

What does your connection script look like thus far?
Have you looked through the GoDaddy support forums?

Here's some code taken from GoDaddy's website:
Dim oConn, oRs
Dim qry, connectstr, sDSNDir
Dim db_name, db_username, db_userpassword
Dim db_server, dsn_name

dsn_name = "your_dsn_name"
fieldname = "your_fieldname"
tablename = "your_tablename"

sDSNDir = Server.MapPath("_dsn")

connectstr = "filedsn=" & sDSNDir & "\" & dsn_name

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
qry = "SELECT * FROM " & tablename

Set oRS = oConn.Execute(qry)

if not oRS.EOF then
while not oRS.EOF
response.write ucase(fieldname) & ": " & oRs.Fields(fieldname) & " "
end if

Set oRs = nothing
Set oConn = nothing

Original source: http://help.godaddy.com/article.php?...59&topic_id=&&

- Adam Kahtava [http://adam.kahtava.com]

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access-SQL Server Connections Romashka Access 3 May 25th, 2007 06:26 AM
Database migration MS Access 2003 to MS SQL 2000 ayazhoda SQL Server 2000 3 April 23rd, 2007 11:38 AM
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
MS Access database connections proud900 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 22nd, 2005 08:21 PM
ASP and access connections ittorget Classic ASP Databases 0 February 18th, 2004 12:43 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.