?
Solved

VB.net SQL multi tennancy

Posted on 2013-01-10
3
Medium Priority
?
230 Views
Last Modified: 2013-01-14
Hi

I have an online SQL database that I interact with via my VB.net Excel Add-in.
We are about to set up multiple Companies on the same database tables so each entry has a
specific company ID. How do I stop one company from see data entered by another company.
Is this multi tennancy? Not sure.....
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1000 total points
ID: 38762118
How are you allowing them to view the data?  Standard procedure would be to qualify all 'SELECT' statements with "WHERE companyID = 'theirCID' " so it only returned data for their company.
0
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 1000 total points
ID: 38762125
IF camoanys viewing the data from Vb.net application only then you can restict them through code only
means you need put Company_id='xxx' in evry query you fired , and xxx will be comapny id who ever is accessing it.
you need to provide login functionality for companiesss ,validate it and then allow ccess to application
and put this company_id in session
0
 

Author Closing Comment

by:Murray Brown
ID: 38773624
Thanks very much for the validation. I''ve been using CompanyID for the last few months
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
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
Via a live example, show how to shrink a transaction log file down to a reasonable size.

764 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