Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

User Stored Procedure as system stored procedure

Posted on 2014-04-03
4
Medium Priority
?
21 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 11

Accepted Solution

by:
HuaMinChen earned 672 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 23

Assisted Solution

by:Snarf0001
Snarf0001 earned 1328 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 23

Assisted Solution

by:Snarf0001
Snarf0001 earned 1328 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

972 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