Click here to Skip to main content
15,888,351 members
Home / Discussions / Database
   

Database

 
QuestionNeed a way to clone rows in SQL [modified] Pin
PyroManiak24-Jul-06 10:07
PyroManiak24-Jul-06 10:07 
AnswerRe: Need a way to clone rows in SQL Pin
Michael Potter24-Jul-06 11:31
Michael Potter24-Jul-06 11:31 
GeneralRe: Need a way to clone rows in SQL [modified] Pin
PyroManiak24-Jul-06 11:44
PyroManiak24-Jul-06 11:44 
GeneralRe: Need a way to clone rows in SQL Pin
Frank Kerrigan25-Jul-06 1:55
Frank Kerrigan25-Jul-06 1:55 
GeneralRe: Need a way to clone rows in SQL Pin
Michael Potter25-Jul-06 4:21
Michael Potter25-Jul-06 4:21 
GeneralRe: Need a way to clone rows in SQL Pin
PyroManiak25-Jul-06 7:52
PyroManiak25-Jul-06 7:52 
GeneralRe: Need a way to clone rows in SQL [modified] Pin
PyroManiak25-Jul-06 7:57
PyroManiak25-Jul-06 7:57 
QuestionRow based security Pin
martin_hughes24-Jul-06 9:49
martin_hughes24-Jul-06 9:49 
Hi All,

I'm not sure if this should go here, or in the ASP.Net forum, so I'll try here and if someone wants to move it later, that's fine by me Big Grin | :-D

I'm developing a web application using ASP.Net 2.0, which will be back-ended by a SQL Server 2005 database (Express for the moment, but once it prooves to be succesful, I think the bean counters will stump up for enterprise Smile | :) ).

The application is multi-user, so it must provide security for each user's data in that one user should not be able to view another user's data unless given permission to do so. To this end, I've decided that I need to implement row based security for each record. The plan is that each user is assigned to a role using the ASP.Net 2.0 security / login features, and each role is unique to each customer who uses the system. For example, take Mike - he works for CompanyA; in my application CompanyA is defined as a Role, and Mike is assigned to this Role. Now each and every record Mike enters is identified with the RoleID of CompanyA, and so Mike can only enter records for CompanyA and can only view records for CompanyA.

This seems like a pretty good way of acheiving this, but as always it's one of my home-brew plans, so I wondered if anyone had any experience of this kind of thing they could share, or can point out any pitfalls in my plans.

Thanks,

Martin.
AnswerRe: Row based security Pin
Colin Angus Mackay24-Jul-06 11:52
Colin Angus Mackay24-Jul-06 11:52 
AnswerRe: Row based security Pin
Frank Kerrigan25-Jul-06 2:03
Frank Kerrigan25-Jul-06 2:03 
GeneralRe: Row based security Pin
martin_hughes25-Jul-06 8:04
martin_hughes25-Jul-06 8:04 
QuestionBastardized query into one query Pin
Nino_124-Jul-06 8:11
Nino_124-Jul-06 8:11 
AnswerHrmm Pin
Ennis Ray Lynch, Jr.24-Jul-06 9:26
Ennis Ray Lynch, Jr.24-Jul-06 9:26 
GeneralRe: Hrmm Pin
Nino_124-Jul-06 11:37
Nino_124-Jul-06 11:37 
AnswerRe: Bastardized query into one query Pin
Michael Potter24-Jul-06 11:43
Michael Potter24-Jul-06 11:43 
QuestionSqlException Error - Login Pin
TheJudeDude24-Jul-06 7:06
TheJudeDude24-Jul-06 7:06 
AnswerRe: SqlException Error - Login Pin
Frank Kerrigan25-Jul-06 2:07
Frank Kerrigan25-Jul-06 2:07 
GeneralRe: SqlException Error - Login Pin
TheJudeDude25-Jul-06 10:57
TheJudeDude25-Jul-06 10:57 
Questionsql data types Pin
saneng24-Jul-06 5:52
saneng24-Jul-06 5:52 
AnswerRe: sql data types Pin
Ennis Ray Lynch, Jr.24-Jul-06 6:21
Ennis Ray Lynch, Jr.24-Jul-06 6:21 
GeneralRe: sql data types Pin
saneng24-Jul-06 22:15
saneng24-Jul-06 22:15 
GeneralRe: sql data types Pin
Mairaaj Khan25-Jul-06 1:30
professionalMairaaj Khan25-Jul-06 1:30 
QuestionADO.Net 1.1 Command Cancel Pin
Steven G. Weber24-Jul-06 3:21
Steven G. Weber24-Jul-06 3:21 
AnswerRe: ADO.Net 1.1 Command Cancel Pin
ToddHileHoffer24-Jul-06 3:32
ToddHileHoffer24-Jul-06 3:32 
QuestionInsert Database Pin
AnhTin23-Jul-06 23:19
AnhTin23-Jul-06 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.