MultiDatabase based architecture for Web application [closed] - asp.net

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
If we have an ASP MVC4 web application and we have to provide it to multiple companies with their logins, what should be the best way with respect to database architecture.
Should we make separate dbs for each company and on url bases we will connect with respective database?
Or should we make one db and use a key for each company?
Because each company will be using the same web application but with its own records.
I am still confused about it because if we make separate dbs for like 100 companies and we need to change a column or cell of db or we want to do updates in our software we will have to change it in 100 dbs. So is there some way Microsoft provides for SQL Server 2008R2.
Thanks for help in advance.

As shown my practice, often different companies wants different functionality or additional features for some parts of web-application. So better will be to separate not only db but web app also.
Also question is it intranet or internet solution? If intranet - no questions. If internet -use third level domain name and separate db for each company. It will give you more flexibility.

This is not as simple to answer as it sounds as it depends upon exactly what you are doing.
Microsoft have quite a good paper on this which I strongly recommend you read before you start. http://msdn.microsoft.com/en-us/library/aa479086.aspx
At our firm we use one database for each client and a main database to keep track of which databases we have and what server they are on. We also have a couple of other databases for aggrigated reporting and keeping track of background processes. We only have one web site accessing those databases which works well for us.

Related

Should I create separate SQL Server database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am creating a library web portal for various colleges, for now I am using a single database for all colleges. I am confused whether to use separate databases for each college or not. Because for now there are 7 colleges using that web portal, but in the future, if there 100 colleges using that web portal, all of them having millions of records in the database.
I would say, stick to that single database for now. In future if that database contains millions of records, you don't need to worry.
You can migrate the data from that database to another one using the method Database Replication.
For more details: https://learn.microsoft.com/en-us/sql/database-engine/database-mirroring/database-mirroring-and-replication-sql-server.
If you want to transfer between two servers like taking backups and restoring to the database on different server, you can use the method -Transaction log shipping.
For details: https://learn.microsoft.com/en-us/sql/database-engine/log-shipping/about-log-shipping-sql-server

How to create a Windows Performance Monitor Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need to create my own application that is similar windows performance monitor. I want to monitor the DQL using asp.net. But i don't know where to start. I already research but no luck.
Consider using below components (but still remember, it is only a suggestion) to start from:
System.Diagnostics.PerformanceCounter class - to access performance counter data
ASP.NET MVC - to create a website
SignalR - to create a backend Hub for client notifications of data gathered by PerformanceCounter class
DotNet.Highcharts - to create charts control
What is your planned usage of this application? If you are planning to use it for your organization then you might want to consider SaaS solution that allows you to plug in your collector.
You have better uptime on the monitoring application because that monitoring service is the last thing you want to go down. You are probably more familiar with how to monitor DQL than to create an application that does charting and alerting. You should be able to get something going within days instead of weeks.
Monitoring is normally composed of collecting, storing and charting. A good SaaS monitoring tool will do well with storing and charting and you need to look for ones with plugin framework that allow you to decide what to collect.

MsSQL callback function to asp.net website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am looking at the possibilities when it comes to making a trigger on a SQL server, trigger a function on my website (without having to poll it every x minutes).
The reason being, I am attempting to create a caching service for my SQL data to where it will only update the cache when there are changes to the table it is setup for. The idea would be that items which are in the database, rarely changed and used often enough to want to skip the expensive trip to the database.
any ideas would be great, thanks.
SQL Server supports event notifications for just this type of problem.
http://msdn.microsoft.com/en-us/library/ms190427(v=sql.105).aspx
If it's data that you want to put in the application cache then you could consider using the SqlCacheDependency class (http://msdn.microsoft.com/en-us/library/ms178604(v=vs.100).aspx). This will expire the cache when there is a predefined change in the database thus avoiding the need for any kind of polling.
Of course it depends what your exact problem is to whether this will meet your needs
SQL Server has CLR integration (albeit at last check, only with .NET 2.0). This means you can run some assembly marked as such from a function/stored-procedure/query. Here is the documentation:
MSDN SQL Server CLR description
You can write an assembly with an exposed method for SQL Server and run it directly from there, thus completing your loop in C#/VB/.NET language of your choosing. This may be a little heavy handed if none of the above answers have what you're looking for, but I'm pretty sure offers the most flexible approach where you control everything.

Are there any hosting solutions for asp.net and MongoDB out there? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm looking for hosting that provides both asp.net (prefer .net 4) and MongoDB. Anyone know any providers?
Micah:
Good question ... I am the founder of MongoHQ and we host MongoDB on top of multiple clouds (Amazon, Joyent, Rackspace, etc.). One of the companies that we have partnered with is AppHabor. They provide easy-to-use .NET application deployment and hosting and, through them, you can also provision MongoDB databases on MongoHQ and use us for your MongoDB hosting.
In general, this is the way that hosting is trending ... having people specialize in technologies and then partner together to provide the best experience.
Also, an important note to point out is that AppHarbor and the MongoHQ shared platform run inside the same network on Amazon. So, you get very low latency and the communication between your application and your database remains internal to the Amazon network. This is both good for speed and security.
I hope this helps. We have a great team that can answer additional questions if you have them! Good luck and happy deploying! :)
Jason
Mongo has a list of available commercial service providers. Most of them are "private server" hosts. You're unlikely to find anything outside of privately hosted servers that will let you install Mongo on their system.
It's just too new, it's not like MySQL or SQL Server where many providers have just built separate farms for these things.
However, if you're already working with someone like "Maximum ASP.NET" and you just want to run a Mongo instance "somewhere", you can use MongoHQ. They're basically just a hosted database provider.
It may mildly affect performance, but let's be fair, if you can't afford a VPS, you're probably not that worried about performance :)

What platform/technology would work best for a web app that has heavy client-side excel type operations? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
So, I am working on an app that needs heavy "cell" calculations in a web-based app. The client needs to be able to change values, even the formulas... calculate totals etc, all on the client side in basically a "spreadsheet".
These requirements are pretty strict :(
I am wondering if there is any library or any way to utilize Excel through a web page? Would Silverlight provide any benefit? One thing I was thinking about is that we need some of the same functionality on the client and server (formula calculating), so Silverlight would be great for the re-usability of our C#. Any help is greatly appreciated!
EDIT 1: ## It is not a public facing application.
Have you considered using Excel itself? Could be a particularly good option for a non-public-facing app.
You can embed .NET code into Excel, including a custom UI and web services calls, with a technology called VSTO. It gives you full programmatic control over cells, formulas, etc. Very cool!
Excel Web Services?
http://office.microsoft.com/en-us/sharepointserver/ha101054761033.aspx
SpreadsheetGear for .NET will do it.
Here is an article by Deane Barker who had a similar question on stackoverflow.
Even Microsoft uses SpreadsheetGear for Excel based calculators on it's MSN Money site as you can see here.
You can find live ASP.NET samples here and download the free trial here.
Disclaimer: I own SpreadsheetGear LLC

Resources