473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Building a multi-tenancy application

Hi,

Can anyone point me to a article of product about using an application
hosted on a webserver for multiple customers? So everything is the same
except for the connection string each customer runs with, which gets
loaded upon logon.

My situation is a following:
- 1 set of code which can interact with the database
- 1 SQL Server instance with multiple Databases (1 per customer)
- 1 File Storage Folder with a folder in which a structue for each
client resides

Is this a keepable structure in performance? Are there better "best
practices"?

Any comments will be appericiated!

Greets,
Gab
Jan 21 '06 #1
2 1371
On Sat, 21 Jan 2006 12:24:56 +0100, "Gabriël@Home" wrote:
Hi,

Can anyone point me to a article of product about using an application
hosted on a webserver for multiple customers? So everything is the same
except for the connection string each customer runs with, which gets
loaded upon logon.

My situation is a following:
- 1 set of code which can interact with the database
- 1 SQL Server instance with multiple Databases (1 per customer)
- 1 File Storage Folder with a folder in which a structue for each
client resides

Is this a keepable structure in performance? Are there better "best
practices"?

Any comments will be appericiated!

Greets,
Gab


Gab,

Is there a reason, such as giving customers access to the database, that
you need a separate database instance for each customer?

In an "Application Service Provider" situation, such as what you're
describing, it's typical to have a database table which lists customers,
and use the KeyID from this table on all other tables, to identify the
records that belong to each customer.

When a customer logs in, you store the ID for them, and can then store all
data in a single set of tables, using the CustomerKey as a part of your
where clauses to be sure you only retrieve data for that one customer.

Does this answer what you're looking for?

Jonathan
Jan 21 '06 #2
Jonathan Broadus wrote:
On Sat, 21 Jan 2006 12:24:56 +0100, "Gabriël@Home" wrote:

Hi,

Can anyone point me to a article of product about using an application
hosted on a webserver for multiple customers? So everything is the same
except for the connection string each customer runs with, which gets
loaded upon logon.

My situation is a following:
- 1 set of code which can interact with the database
- 1 SQL Server instance with multiple Databases (1 per customer)
- 1 File Storage Folder with a folder in which a structue for each
client resides

Is this a keepable structure in performance? Are there better "best
practices"?

Any comments will be appericiated!

Greets,
Gab

Gab,

Is there a reason, such as giving customers access to the database, that
you need a separate database instance for each customer?

In an "Application Service Provider" situation, such as what you're
describing, it's typical to have a database table which lists customers,
and use the KeyID from this table on all other tables, to identify the
records that belong to each customer.

When a customer logs in, you store the ID for them, and can then store all
data in a single set of tables, using the CustomerKey as a part of your
where clauses to be sure you only retrieve data for that one customer.

Does this answer what you're looking for?

Jonathan

Thanks for the answer!

I think it's a bit of an answer I was looking for. But are there reasons
why you should have multiple databases (I can sync there structure
within seconds) on 1 sql server?

Thanks,
Gab
Jan 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jenta | last post by:
A World Beyond Capitalism 2005, An Annual International Multiracial Alliance Building Peace Conference Is Accepting Proposals... ...and Online Registration is now available if you plan to table...
0
by: Kevin Parkes | last post by:
Because Active State haven't yet built the additional modules I will require I'm trying to build Perl 5.8.0 from source using dmake and the Borland C++ command line compiler from the cmd.exe...
1
by: Stephen Patten | last post by:
Hi All, While in the process of building my table (40 or so Insert statments) can I then query ("select * from @Table_variable") and use the results up to theat point for another insert into...
1
by: Asim Jalis | last post by:
Building a Single Assembly DLL with C# and C++ Code I am trying to create a single assembly composed of managed C++ and C# code, and I want to do this on the command line. I have confirmed...
7
by: MLH | last post by:
Building Applications with Microsoft Access 97 is a publication I think I need. Is it available in book form? Is MicroSoft the sole vendor? Anybody got a copy they wanna sell???
1
by: Bob Alston | last post by:
Anyone have experience in building Access apps with user definable fields? (Not the kind of fields where you just let the user define the label for a pre set number of predefined fields.) I...
9
by: DFS | last post by:
You might also find other uses ========================================================= Public Function getSelections(selType As String, selSeparator As Boolean, selList As ListBox, selCol As...
2
by: Abubakar | last post by:
Hi, using WTL for GUI, in release mode, if I set the "Runtime Library" to "Multi-threaded DLL (/MD)", I get the following errors: : MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove_s already...
1
by: barb | last post by:
We are trying to build a multi level BOM report. The problem we are having is in designing the report so that the spacing for each level does not show up on the report when there is no information....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.