SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

A Private Database

By Steve Jones, 2008/06/09

Total article views: 246 | Views in the last 30 days: 3

One of the things I've dealt with, and seen lots of questions about in our forums, is the best way to deal with multiple clients using the same schema and lookup data for an application. I've seen two basic ways that this is handled in SQL Server: some people put everything in one database and use some type of ID to filter results. Others use separate databases for each client and either keep lookup data in a central database, so each client has two databases they access, or use some copy method, such as replication, to ensure the lookup data is in every client's database. Both of these have pros and cons and each company needs to examine their situation to determine which method makes sense.

I was browsing the World Wide Web the other day and say another option, Oracle's Virtual Private Database technology, which seems to handle this very issue. It's touted as a great way to allow custom access to each individual user, though I do see that it does require some table design changes that allow you to map users to data.

It's a fancy way of setting up Row Level Security, and while I haven't done a lot of work digging into the Oracle system, it seems like something that would be handy to have in SQL Server as a feature. It's complicated, and it might confuse lots of people, but implementing your own homegrown row-level security is complicated and confusing as well.

Of course I thought that Service Broker was a great idea as well and that doesn't seem to have taken off very much in SQL Server 2005 to date. Perhaps some automated Row-Level Security feature would end up the same way.

More and more as we move to a personalized world where every application and data set should be customized to the user, I tend to think that having robust, well-tested row level security options in the platform would be a good idea. Perhaps we'll see something along these lines in SQL Server 11.

Steve Jones


The Voice of the DBA Podcasts

Everyday Jones

The podcast feeds are now available at sqlservercentral.podshow.com to get better bandwidth and maybe a little more exposure :). Comments are definitely appreciated and wanted, and you can get feeds from there.

Overall RSS Feed: or now on iTunes!

Today's podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. Support this great duo at www.everydayjones.com.

I really appreciate and value feedback on the podcasts. Let us know what you like, don't like, or even send in ideas for the show. If you'd like to comment, post something here. The boss will be sure to read it.

By Steve Jones, 2008/06/09

Total article views: 246 | Views in the last 30 days: 3
Your response
 
 
Related Articles
FORUM

row/column-level security

row and column level security in a Data Warehouse

FORUM

SQL Express 2008 Security - Replication Client

How to secure a client database that is merge replicated to a central server

FORUM

Server level trigger at Database level...

Database level trigger at server level

BLOG

SQL Musings - Podcasting

I'm working on getting a small studio set up for some podcasting of the editorials. That means I put...

BLOG

K. Brian Kelley - Databases, Infrastructure, and Security - Technical Podcasts I Listen To

There are a few podcasts I tend to listen to as I have time. Since I work with a wide range of techn...

Tags
editorial    
 
Contribute

Free registration required...

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

Steve Jones
Editor, SQLServerCentral.com