Filter data based on user (MSSQL)

This is a discussion on "Filter data based on user (MSSQL)" within the Databases section. This forum, and the thread "Filter data based on user (MSSQL) are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 18th, 2003, 02:16
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Filter data based on user (MSSQL)

Just wondering if this is possible.

Say I have a table that hold data for clients in all 50 states (or the British equivalent:razz.

Can I set up a User in SQL Server such that the user only sees data from one state? As in allowing full access to the db but one a filtered subset of the data?

  #2 (permalink)  
Old Sep 18th, 2003, 08:00
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
I believe you can do this with a 'view'. Then give that user access to execute the view.
  #3 (permalink)  
Old Sep 18th, 2003, 12:15
Junior Member
Join Date: Sep 2003
Location: Vatican City
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by catalyst

Just wondering if this is possible.

Say I have a table that hold data for clients in all 50 states (or the British equivalent:razz.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
I thought Britain was now officially the 51st state?

Does that mean we can claim our share of the US national debt?
  #4 (permalink)  
Old Sep 18th, 2003, 17:29
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,950
Blog Entries: 7
Thanks: 7
Thanked 3 Times in 3 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Yet another effort at taking posts 'off topic' by Mart there..
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #5 (permalink)  
Old Sep 19th, 2003, 05:48
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Canada is the 51st state, Britain comes in next.

Yeah, I know you can do it with a view, but I don't have control over the app that's pulling the data (compiled VB) and can't change the tables to views so I was looking for something security/user rights based.
Closed Thread

Tags
filter, data, based, user, mssql

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect user based on location bean_2k1 PHP Forum 2 Apr 22nd, 2008 09:47
mysql data loads once user login longstand PHP Forum 9 Feb 7th, 2008 07:10
[SOLVED] Dispaly User Data Once Logged In longstand PHP Forum 2 Nov 21st, 2007 20:16
can't convert table-based to css-based layout markus Web Page Design 21 Apr 25th, 2007 22:50
[SOLVED] MySQL to MSSQL Anonymous User Databases 7 Oct 6th, 2003 07:48


All times are GMT. The time now is 12:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43