Help please for amateur developer wanting database connections with CS4
Hi there
I’m an amateur web developer ‘volunteer’ for a sports group, and would really appreciate if someone is able to please help me with regard to
(a) checking I have my URL’s etc. set up correctly for a webserver/tester so that I can connect to y Access database; and
(b) setting up the database connection.
I’ve just upgraded from Dreamweaver 3 to Dreamweaver CS4 so that I can set this up.
My first concern is that because I’ve fluffed around with the original site definition addresses in an effort to work this out myself, I might now have inadvertently made a change that will stop the whole website running. Although I originally set all this up, it was quite awhile ago and I don’t remember how it should be set up, or what I’ve just changed!
The website runs off my laptop. My site name is “NZMWeb”, the root folder for all my files is:
C:\Users\Liam\NZMaristWebsite\htdocs\
and the site itself is: http://www.maristrugby.org.nz/
Additionally I’ve just now enabled IIS thru Windows XP, and have chosen to use ASP.
The database is called “Marist.accdb”, and I have copied it into the root folder for my website, i.e. C:\Users\Liam\NZMaristWebsite\htdocs\
My site definition tabs for NZMWeb now read:
For Local:
Site name= NZMWeb; local root folder= C:\Users\Liam\NZMaristWebsite\htdocs\; Links relative to = site root; HTTP address = http://www.maristrugby.org.nz/
For remote access = “None” (This seems odd to me?)
I’m lost when it comes to the Testing Server window. At the moment I have it set to:
Server model = ASP.NET VB; Access = Local/Network; Testing Server Folder = C:\Inetpub\wwwroot (which I put in on advice when setting up IIS. However it seems odd to start pointing to a completely different folder than my site root folder, and this makes me anxious that things might start pointing to the wrong folder and stop the website from running. Am I worrying unnecessarily?)
The URL prefix is very confusing for me and I all my trial options generate messages about it not mapping correctly. For now I have set it to http://localhost/Database and I have also tried http://localhost/. I’ve created a new “Database” folder in both wwwroot and in C:\Users\Liam\NZMaristWebsite\htdocs\ - I put this folder in both places because I’m not really sure where to put it!
I’ve played around with setting up connections, and would prefer to use DSN because I don’t know where to find the provider connection string.
My DSN is called “Marist DB” and in the process of setting it up it appears I now have 2 ‘Sites’ set up, one which is my actual “NZMWeb” and the other which is the connection “Marist DB”. When I drill down to this connection the tables, views etc. are all empty. When I try to test the connect the message reads “Operation Cancelled”.
If someone has the time, is it possible to please advise me:
Does it look like everything is set up okay in site definition for my original “NZMWeb”? I’d hate to have changed something and stopped it connecting!
In order to set up the database connection, I presume I should be working in the “Manage Sites” tab for “MaristDB” (i.e. rather than “NZMWeb”)?
Is “localhost” an abbreviation for C:\Inetpub\wwwroot?
How should I set up the site definition testing server URLs etc. for the MaristDB connection?
I’ve tried following various books and searched the internet for instructions, but still find myself struggling to get this sorted…
Many thanks
Chrissie
