Ask a Question related to ASP Database, Design and Development.
-
Mike Hill #1
One ASP Site...Multiple Databases
I am developing an ASP Program that will be used by many people. I only want
to have one site but have each person have their own database that the site
runs from.
For example:
Person 1 Database = dbp1
Person 2 Database = dbp2
Person 3 Database = dbp3
I have a 'common' dbase that contains the user and the dbase they are to
use. When they log in I need to associate their dbase with them, in a
session variable perhaps?
What would be the best way to do this?
Thanks,
Mike
Mike Hill Guest
-
Multiple Site?????
I have a web server that is currently set to host one website through the web publishing server. I need to set up additional sites. So currently I... -
multiple databases
Hi, How can I set up PHP to work with multiple databases in the same page? (not tables) -
Query using multiple databases?
I also need help in joining tables from multiple databases. Using CF5. The last post here says to use dot-dot notation. But that doesn't work for... -
Federated Databases, joins across databases etc
Greetings, I want to do a join between 2 tables on 2 different db2 databases on the same server. I assume that I have to use federated databases. I... -
[PHP] multiple databases
On Jul 16, 2003, "Paulo Neves" claimed that: |Hi, | |How can I set up PHP to work with multiple databases in the same page? |(not tables) |... -
Jeff Cochran #2
Re: One ASP Site...Multiple Databases
On Thu, 15 Apr 2004 11:17:25 -0600, "Mike Hill"
<mhill7272(at)hotmail.com> wrote:
One database with information for multiple users, but you don't give>I am developing an ASP Program that will be used by many people. I only want
>to have one site but have each person have their own database that the site
>runs from.
>
>For example:
> Person 1 Database = dbp1
> Person 2 Database = dbp2
> Person 3 Database = dbp3
>
>I have a 'common' dbase that contains the user and the dbase they are to
>use. When they log in I need to associate their dbase with them, in a
>session variable perhaps?
>
>What would be the best way to do this?
any information on what the database contains or why you think you
need sepaarte ones.
If you definitely need them as separate, you need to authenticate the
user and assign a connection based on the user.
Jeff
Jeff Cochran Guest
-
Aaron Bertrand [MVP] #3
Re: One ASP Site...Multiple Databases
>I am developing an ASP Program that will be used by many people. I only
Why? Could you explain further please?>want
> to have one site but have each person have their own database that the
> site
> runs from.
From what you've described so far, I don't see the need for more than one
table, never mind more than one database.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand [MVP] Guest
-
J. Baute #4
Re: One ASP Site...Multiple Databases
"Mike Hill" <mhill7272(at)hotmail.com> wrote in message
news:uwa6F2wIEHA.3432@tk2msftngp13.phx.gbl...want> I am developing an ASP Program that will be used by many people. I onlysite> to have one site but have each person have their own database that theIn ASP it's always a good idea to create your database connection when you> runs from.
>
> For example:
> Person 1 Database = dbp1
> Person 2 Database = dbp2
> Person 3 Database = dbp3
>
> I have a 'common' dbase that contains the user and the dbase they are to
> use. When they log in I need to associate their dbase with them, in a
> session variable perhaps?
>
> What would be the best way to do this?
need it, and close it asap afterwards, leaving it open as short as possible.
Storing ADO connection objects in the ASP session object is a no-no.
So what I would do is determine the database per user when the users session
is created (Session_onStart event in global.asa), and store the connection
string in the session. Whenever you need to connect to the user-specific
database in your pages, use this connection string.
J. Baute Guest



Reply With Quote

