PC Review


Reply
Thread Tools Rate Thread

Database connections how do I

 
 
Brian Royston
Guest
Posts: n/a
 
      7th Feb 2007
Hi

I have a database in my root from which I want members of my club to enter
their details. I then want to be able to access that same database from a
subweb would appreciate any info on how to

Thanks in advance


 
Reply With Quote
 
 
 
 
David Berry
Guest
Posts: n/a
 
      8th Feb 2007
In your sub web create a connection to where the database is using Tools,
Site Settings, Database


"Brian Royston" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi
>
> I have a database in my root from which I want members of my club to enter
> their details. I then want to be able to access that same database from a
> subweb would appreciate any info on how to
>
> Thanks in advance
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Feb 2007
If you are storing the database within your web site, then the database must be within the same web
/ subweb that you will be access it from your pages.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Brian Royston" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi
>
> I have a database in my root from which I want members of my club to enter their details. I then
> want to be able to access that same database from a subweb would appreciate any info on how to
>
> Thanks in advance
>



 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      8th Feb 2007
A database can exist anywhere in the web, or sub web, or even outside of the
web. All you need to know is the path to the database (to use OLE DB) or
set up a System DSN. Each sub web must have it's own global.asa but the
database can live anywhere. Some web hosts don't even put it in the web.


"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you are storing the database within your web site, then the database
> must be within the same web / subweb that you will be access it from your
> pages.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "Brian Royston" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi
>>
>> I have a database in my root from which I want members of my club to
>> enter their details. I then want to be able to access that same database
>> from a subweb would appreciate any info on how to
>>
>> Thanks in advance
>>

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Feb 2007
Not when using the FP database components to connect via the file system, as FP can not set
permissions outside of the specific web.

If using a System DSN, then you are correct, the database can be any place on the server.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"David Berry" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>A database can exist anywhere in the web, or sub web, or even outside of the web. All you need to
>know is the path to the database (to use OLE DB) or set up a System DSN. Each sub web must have
>it's own global.asa but the database can live anywhere. Some web hosts don't even put it in the
>web.
>
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>> If you are storing the database within your web site, then the database must be within the same
>> web / subweb that you will be access it from your pages.
>>
>> --
>> ==============================================
>> Thomas A. Rowe
>> Microsoft MVP - FrontPage
>>
>> http://www.Ecom-Data.com
>> ==============================================
>>
>>
>> "Brian Royston" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> Hi
>>>
>>> I have a database in my root from which I want members of my club to enter their details. I then
>>> want to be able to access that same database from a subweb would appreciate any info on how to
>>>
>>> Thanks in advance
>>>

>>
>>

>
>



 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      8th Feb 2007
If you're using straight ASP (and not the DRW) it will work with OLEDB.


"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Not when using the FP database components to connect via the file system,
> as FP can not set permissions outside of the specific web.
>
> If using a System DSN, then you are correct, the database can be any place
> on the server.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "David Berry" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>A database can exist anywhere in the web, or sub web, or even outside of
>>the web. All you need to know is the path to the database (to use OLE DB)
>>or set up a System DSN. Each sub web must have it's own global.asa but
>>the database can live anywhere. Some web hosts don't even put it in the
>>web.
>>
>>
>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> If you are storing the database within your web site, then the database
>>> must be within the same web / subweb that you will be access it from
>>> your pages.
>>>
>>> --
>>> ==============================================
>>> Thomas A. Rowe
>>> Microsoft MVP - FrontPage
>>>
>>> http://www.Ecom-Data.com
>>> ==============================================
>>>
>>>
>>> "Brian Royston" <(E-Mail Removed)> wrote in message
>>> news:%(E-Mail Removed)...
>>>> Hi
>>>>
>>>> I have a database in my root from which I want members of my club to
>>>> enter their details. I then want to be able to access that same
>>>> database from a subweb would appreciate any info on how to
>>>>
>>>> Thanks in advance
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Feb 2007
Correct.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"David Berry" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> If you're using straight ASP (and not the DRW) it will work with OLEDB.
>
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>> Not when using the FP database components to connect via the file system, as FP can not set
>> permissions outside of the specific web.
>>
>> If using a System DSN, then you are correct, the database can be any place on the server.
>>
>> --
>> ==============================================
>> Thomas A. Rowe
>> Microsoft MVP - FrontPage
>>
>> http://www.Ecom-Data.com
>> ==============================================
>>
>>
>> "David Berry" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>>>A database can exist anywhere in the web, or sub web, or even outside of the web. All you need
>>>to know is the path to the database (to use OLE DB) or set up a System DSN. Each sub web must
>>>have it's own global.asa but the database can live anywhere. Some web hosts don't even put it in
>>>the web.
>>>
>>>
>>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> If you are storing the database within your web site, then the database must be within the same
>>>> web / subweb that you will be access it from your pages.
>>>>
>>>> --
>>>> ==============================================
>>>> Thomas A. Rowe
>>>> Microsoft MVP - FrontPage
>>>>
>>>> http://www.Ecom-Data.com
>>>> ==============================================
>>>>
>>>>
>>>> "Brian Royston" <(E-Mail Removed)> wrote in message
>>>> news:%(E-Mail Removed)...
>>>>> Hi
>>>>>
>>>>> I have a database in my root from which I want members of my club to enter their details. I
>>>>> then want to be able to access that same database from a subweb would appreciate any info on
>>>>> how to
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Brian Royston
Guest
Posts: n/a
 
      9th Feb 2007
Thanks for all that much appreciated and I think understood mostly so lets
see.

1/ FP is unable to create a connection to a database in another web.

2/ To create a connection I am going to have to use ASP code in my page to
create the connection?

3/ The bit I didn't quite understand was the DSN! I already have a
connection on my server to my database setup via the server control panel
i.e. DBQ string. I also have a connection via ODBC admin tools on my laptop.
Can I not just create another connection to that from my subweb? Or is it
possible to doctor the global.asa in the subweb to force it to look in a
different directory?

Apologies if these are remedial questions but this is my first attempt so
still on a learning curve.

Thanks

Brian

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Correct.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "David Berry" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> If you're using straight ASP (and not the DRW) it will work with OLEDB.
>>
>>
>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Not when using the FP database components to connect via the file
>>> system, as FP can not set permissions outside of the specific web.
>>>
>>> If using a System DSN, then you are correct, the database can be any
>>> place on the server.
>>>
>>> --
>>> ==============================================
>>> Thomas A. Rowe
>>> Microsoft MVP - FrontPage
>>>
>>> http://www.Ecom-Data.com
>>> ==============================================
>>>
>>>
>>> "David Berry" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>>A database can exist anywhere in the web, or sub web, or even outside of
>>>>the web. All you need to know is the path to the database (to use OLE
>>>>DB) or set up a System DSN. Each sub web must have it's own global.asa
>>>>but the database can live anywhere. Some web hosts don't even put it in
>>>>the web.
>>>>
>>>>
>>>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> If you are storing the database within your web site, then the
>>>>> database must be within the same web / subweb that you will be access
>>>>> it from your pages.
>>>>>
>>>>> --
>>>>> ==============================================
>>>>> Thomas A. Rowe
>>>>> Microsoft MVP - FrontPage
>>>>>
>>>>> http://www.Ecom-Data.com
>>>>> ==============================================
>>>>>
>>>>>
>>>>> "Brian Royston" <(E-Mail Removed)> wrote in message
>>>>> news:%(E-Mail Removed)...
>>>>>> Hi
>>>>>>
>>>>>> I have a database in my root from which I want members of my club to
>>>>>> enter their details. I then want to be able to access that same
>>>>>> database from a subweb would appreciate any info on how to
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      9th Feb 2007
See inline below

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Brian Royston" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for all that much appreciated and I think understood mostly so lets see.
>
> 1/ FP is unable to create a connection to a database in another web.


Correct.

>
> 2/ To create a connection I am going to have to use ASP code in my page to create the connection?


Correct, you will have to manually write the code to create the connections.

>
> 3/ The bit I didn't quite understand was the DSN! I already have a connection on my server to my
> database setup via the server control panel i.e. DBQ string. I also have a connection via ODBC
> admin tools on my laptop. Can I not just create another connection to that from my subweb? Or is
> it possible to doctor the global.asa in the subweb to force it to look in a different directory?


I always use a System DSN, which allows me to have the database anywhere on the web server and to
have it in a different location on my local system without me having to remember to change any
connection strings when publishing.

>
> Apologies if these are remedial questions but this is my first attempt so still on a learning
> curve.
>
> Thanks
>
> Brian
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>> Correct.
>>
>> --
>> ==============================================
>> Thomas A. Rowe
>> Microsoft MVP - FrontPage
>>
>> http://www.Ecom-Data.com
>> ==============================================
>>
>>
>> "David Berry" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
>>> If you're using straight ASP (and not the DRW) it will work with OLEDB.
>>>
>>>
>>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Not when using the FP database components to connect via the file system, as FP can not set
>>>> permissions outside of the specific web.
>>>>
>>>> If using a System DSN, then you are correct, the database can be any place on the server.
>>>>
>>>> --
>>>> ==============================================
>>>> Thomas A. Rowe
>>>> Microsoft MVP - FrontPage
>>>>
>>>> http://www.Ecom-Data.com
>>>> ==============================================
>>>>
>>>>
>>>> "David Berry" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>>>>>A database can exist anywhere in the web, or sub web, or even outside of the web. All you need
>>>>>to know is the path to the database (to use OLE DB) or set up a System DSN. Each sub web must
>>>>>have it's own global.asa but the database can live anywhere. Some web hosts don't even put it
>>>>>in the web.
>>>>>
>>>>>
>>>>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>>>>> news:(E-Mail Removed)...
>>>>>> If you are storing the database within your web site, then the database must be within the
>>>>>> same web / subweb that you will be access it from your pages.
>>>>>>
>>>>>> --
>>>>>> ==============================================
>>>>>> Thomas A. Rowe
>>>>>> Microsoft MVP - FrontPage
>>>>>>
>>>>>> http://www.Ecom-Data.com
>>>>>> ==============================================
>>>>>>
>>>>>>
>>>>>> "Brian Royston" <(E-Mail Removed)> wrote in message
>>>>>> news:%(E-Mail Removed)...
>>>>>>> Hi
>>>>>>>
>>>>>>> I have a database in my root from which I want members of my club to enter their details. I
>>>>>>> then want to be able to access that same database from a subweb would appreciate any info on
>>>>>>> how to
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Brian Royston
Guest
Posts: n/a
 
      9th Feb 2007
Thank you all

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> See inline below
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "Brian Royston" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks for all that much appreciated and I think understood mostly so
>> lets see.
>>
>> 1/ FP is unable to create a connection to a database in another web.

>
> Correct.
>
>>
>> 2/ To create a connection I am going to have to use ASP code in my page
>> to create the connection?

>
> Correct, you will have to manually write the code to create the
> connections.
>
>>
>> 3/ The bit I didn't quite understand was the DSN! I already have a
>> connection on my server to my database setup via the server control panel
>> i.e. DBQ string. I also have a connection via ODBC admin tools on my
>> laptop. Can I not just create another connection to that from my subweb?
>> Or is it possible to doctor the global.asa in the subweb to force it to
>> look in a different directory?

>
> I always use a System DSN, which allows me to have the database anywhere
> on the web server and to have it in a different location on my local
> system without me having to remember to change any connection strings when
> publishing.
>
>>
>> Apologies if these are remedial questions but this is my first attempt so
>> still on a learning curve.
>>
>> Thanks
>>
>> Brian
>>
>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Correct.
>>>
>>> --
>>> ==============================================
>>> Thomas A. Rowe
>>> Microsoft MVP - FrontPage
>>>
>>> http://www.Ecom-Data.com
>>> ==============================================
>>>
>>>
>>> "David Berry" <(E-Mail Removed)> wrote in message
>>> news:%(E-Mail Removed)...
>>>> If you're using straight ASP (and not the DRW) it will work with OLEDB.
>>>>
>>>>
>>>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> Not when using the FP database components to connect via the file
>>>>> system, as FP can not set permissions outside of the specific web.
>>>>>
>>>>> If using a System DSN, then you are correct, the database can be any
>>>>> place on the server.
>>>>>
>>>>> --
>>>>> ==============================================
>>>>> Thomas A. Rowe
>>>>> Microsoft MVP - FrontPage
>>>>>
>>>>> http://www.Ecom-Data.com
>>>>> ==============================================
>>>>>
>>>>>
>>>>> "David Berry" <(E-Mail Removed)> wrote in message
>>>>> news:(E-Mail Removed)...
>>>>>>A database can exist anywhere in the web, or sub web, or even outside
>>>>>>of the web. All you need to know is the path to the database (to use
>>>>>>OLE DB) or set up a System DSN. Each sub web must have it's own
>>>>>>global.asa but the database can live anywhere. Some web hosts don't
>>>>>>even put it in the web.
>>>>>>
>>>>>>
>>>>>> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
>>>>>> news:(E-Mail Removed)...
>>>>>>> If you are storing the database within your web site, then the
>>>>>>> database must be within the same web / subweb that you will be
>>>>>>> access it from your pages.
>>>>>>>
>>>>>>> --
>>>>>>> ==============================================
>>>>>>> Thomas A. Rowe
>>>>>>> Microsoft MVP - FrontPage
>>>>>>>
>>>>>>> http://www.Ecom-Data.com
>>>>>>> ==============================================
>>>>>>>
>>>>>>>
>>>>>>> "Brian Royston" <(E-Mail Removed)> wrote in message
>>>>>>> news:%(E-Mail Removed)...
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> I have a database in my root from which I want members of my club
>>>>>>>> to enter their details. I then want to be able to access that same
>>>>>>>> database from a subweb would appreciate any info on how to
>>>>>>>>
>>>>>>>> Thanks in advance
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
database connections =?Utf-8?B?a3VydG9ha2xleQ==?= Microsoft Access 1 12th Jun 2006 10:58 PM
Database Connections =?Utf-8?B?bmJvaGFuYQ==?= Microsoft ADO .NET 3 5th Nov 2005 08:09 AM
Database Connections Tom John Microsoft ASP .NET 2 19th Aug 2005 04:59 PM
Database Connections =?Utf-8?B?UmF2aXNo?= Microsoft Frontpage 5 4th Dec 2003 12:01 AM
VB.Net and Database Connections Nick N. Microsoft VB .NET 10 25th Nov 2003 02:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:35 AM.