Solved

User Stored Procedure as system stored procedure

Posted on 2014-04-03
4
7 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now