Ask a Question related to Dreamweaver AppDev, Design and Development.
-
raycafc #1
Convert Db connection for use on web
I've developed my site with all testing done on my PC. Now I want to upload the
entire site to the web, but what do I change my DB Connection string to?
Currently it is:
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_connNJB_STRING
MM_connNJB_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Inetpub\wwwroot\NJB\Database\books.mdb;"
%>
But what would it be if I'm using, for example "www.njb.co.uk" please?
raycafc Guest
-
Net connection without Internet connection whoas
Hi does flash media server 2 require a connection to the internet i'm using the evaluation version on a computer which is not connected to the... -
"Contribute cannot verify your connection information"- Every other problem ruled out, but still no connection
Hi, first, please allow me to give you the background info Client OS - Windows 2000/XP Pro Version - Contribute 2.01 - I installed the patch from... -
One NFS connection fine, one NFS connection slow
Ok, this is all a bit odd. I will draw an ascii picture and hope it survives in Google: sun server | .------mandrake... -
Do I need to Convert with Convert.ToInt32(session("myNumber")) ?
Hello, I have this session("myNumber") = 888 Dim intNumber As Integer a) intNumber = session("myNumber") b) intNumber =... -
Have internet connection but not workgroup connection.
In article <Xns93B9BBF24CB33adfslur0mdoaur03jadl@207.46.248.16>, Frank Dreyfus <fdreyfus@nyw.com> wrote: I've written a web site that should help... -
CarlGrint #2
Re: Convert Db connection for use on web
YOu can use an ASP file to find the 'location' of your live site path.
I have a copy you can download, once unzipped, upload it to your website, next
to your home page, then browse to it, note the path it gives you.
Normally your database will go in a DB folder next to the www or htdocs
folder, so you just adjust the path given to accomodate this.
URL = [url]www.cgw3.co.uk/uploads/location.zip[/url]
Originally posted by: raycafc
I've developed my site with all testing done on my PC. Now I want to upload
the entire site to the web, but what do I change my DB Connection string to?
Currently it is:
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_connNJB_STRING
MM_connNJB_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Inetpub\wwwroot\NJB\Database\books.mdb;"
%>
But what would it be if I'm using, for example "www.njb.co.uk" please?
CarlGrint Guest
-
raycafc #3
Re: Convert Db connection for use on web
Thanks for your help. However I still have a problem...
Your program gave me a string of:
C:\Inetpub\vhosts\notjustbooks.co.uk\httpdocs\njb\ YourDB.mdb and I've tried
various permutations of this, such as:
httpdocs\njb\books.mdb, but I get errors returned, such as:
'c:\httpdocs\njb\books.mdb' is not a valid path. Make sure that the path name
is spelled correctly and that you are connected to the server on which the file
resides. So it still seems to think I'm using a local server rather than the
web itself. So I'd be grateful for any further help.
Thanks again
raycafc Guest
-
CarlGrint #4
Re: Convert Db connection for use on web
Depending on the folder name of the db try
C:\Inetpub\vhosts\notjustbooks.co.uk\db\books.mdb
Originally posted by: raycafc
Thanks for your help. However I still have a problem...
Your program gave me a string of:
C:\Inetpub\vhosts\notjustbooks.co.uk\httpdocs\njb\ YourDB.mdb and I've tried
various permutations of this, such as:
httpdocs\njb\books.mdb, but I get errors returned, such as:
'c:\httpdocs\njb\books.mdb' is not a valid path. Make sure that the path name
is spelled correctly and that you are connected to the server on which the file
resides. So it still seems to think I'm using a local server rather than the
web itself. So I'd be grateful for any further help.
Thanks again
CarlGrint Guest
-
raycafc #5
Re: Convert Db connection for use on web
I haven't tried it yet, but if you're specifying C: doesn't that mean that you're testing on your PC?
raycafc Guest
-
CarlGrint #6
Re: Convert Db connection for use on web
I was just copying the string you pasted from the page I gave you...so that is
why C is there, but don't forget the hosting server is a PC to, it has C, D, E
drives just like your home pc, so it has to be one or the other.
Originally posted by: raycafc
I haven't tried it yet, but if you're specifying C: doesn't that mean that
you're testing on your PC?
CarlGrint Guest
-
Alexandro Colorado #7
Re: Convert Db connection for use on web
Can't it be a relative link instead of a root link taking place form your
home folder like:
notjustbooks.co.uk\db\books.mdb
or even
db\books.mdb
On Sun, 6 Mar 2005 15:37:39 +0000 (UTC), CarlGrint
<webforumsuser@macromedia.com> wrote:
> I was just copying the string you pasted from the page I gave you...so
> that is
> why C is there, but don't forget the hosting server is a PC to, it has
> C, D, E
> drives just like your home pc, so it has to be one or the other.
>
>
> Originally posted by: raycafc
> I haven't tried it yet, but if you're specifying C: doesn't that mean
> that
> you're testing on your PC?
>
>
>
--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
[url]http://www.interaktonline.com[/url]
Tel: 40(21) 312.5312
Alexandro Colorado Guest
-
raycafc #8
Re: Convert Db connection for use on web
I find this connection thing so confusing, but I've sorted it anyway. Thanks to
those who helped, maybe I didn't ask the right question, but eventually I
managed to sort it with the following:
MM_connNJB_STRING = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" &
Server.MapPath("Database\books.mdb")
raycafc Guest



Reply With Quote

