带数据库的asp.net网站,该数据库可为每个客户端复制 [英] asp.net website with database that replicate for each client

查看:83
本文介绍了带数据库的asp.net网站,该数据库可为每个客户端复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何创建一个拥有数据库的网站.该网站将按以下方式工作.许多不同的公司可以根据客户和其他主要针对非洲小型企业的内容进行注册并能够在线管理他们的业务

每次新公司注册时,都会创建一个新数据库供该公司管理其资料.所有公司的数据库结构都相同.
他们将能够登录其帐户和Crud客户,生成报告并能够在网站上看到折线图.

我想知道如何处理数据库,以便它可以为每个公司创建一个新数据库.
如何管理所有公司的数据库?

链接到有用的站点也将不胜感激.

谢谢.

I would like to know how to go about creating a website that will have a database. The website will work as follows. Many different companies can register and be able to manage they business online in terms of their client and other stuff this mainly for small business in Africa

Every time a new company registers a new database will be created for the company to manage their stuff. The database will be the same structure for all the companies.
They will be able to login into their account and Crud customers, Generate reports and be able to see a line graph on the site.

I would like to know the how to go about with database, so it can create a new database for each company.
How will all the companies’ database be managed?

Links to helpful site will also be appreciated.

Thanks.

推荐答案

忽略其他人.有许多托管环境可将每个客户分为自己的数据库.它确实简化了许多事情.但是,有两种方法都可以做到这一点.

一种简单的方法是编写模板数据库脚本,并在每次新客户注册时执行该脚本.您还应该有一个主数据库,用于存储您自己的客户ID以及该客户ID属于哪个数据库.
Ignore these other guys. There are many hosted environments that will break out each customer into its own db. It does simplify many things. However, there are good arguments for doing it both ways.

One easy way to do this is to script a template database and execute that script each time a new customer signs-up. You should also likely have a master database where you store your own customer ids and which db belongs to them.


这篇关于带数据库的asp.net网站,该数据库可为每个客户端复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆