Solved

User Stored Procedure as system stored procedure

Posted on 2014-04-03
4
11 Views
Last Modified: 2016-06-04
Hi,

Our application has one database for each customer and we have several 100 customers. Each database has same set of stored procedures. we are planning to convert these stored procedures as system stored procedures to have ease on maintenance. Please let us know the downside of it if any

Thanks,
Ganapathi
0
Comment
Question by:rajathi_franco
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
HuaMinChen earned 168 total points
ID: 39974510
You can instead have only one customer table for dealing with all customers. Then within only one schema there, you can easily handle with whatever new logic specifically for each customer.
0
 
LVL 22

Assisted Solution

by:Snarf0001
Snarf0001 earned 332 total points
ID: 39974857
System stored procedures are great, I've used them on a couple projects before with similar requirements.  In this case it was due to stringent security policies, enforcing that each "client" had completely segregated data.

The only downside I've found, is you lose the ability to incrementally upgrade the systems.
If you had two customers moving to version 2.0 for example (assuming there were database changes involved), you would either have to duplicate any conflicting procs with a 2.0 or something, or upgrade everyone at once.
0
 
LVL 22

Assisted Solution

by:Snarf0001
Snarf0001 earned 332 total points
ID: 39974863
Depending on how heavy the use is, there are marginal performance issues to consider as well.

This article does a good job explaining it in detail:

http://www.sqlperformance.com/2012/10/t-sql-queries/sp_prefix
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question