Re: Permissions!
From: Arpan (arpan_de_at_hotmail.com)
Date: 09/05/05
- Next message: Dan Guzman: "Re: Permissions!"
- Previous message: Arpan: "Re: Permissions!"
- In reply to: Dan Guzman: "Re: Permissions!"
- Next in thread: Dan Guzman: "Re: Permissions!"
- Reply: Dan Guzman: "Re: Permissions!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 5 Sep 2005 13:30:17 -0700
Sorry Dan.....forgot to ask another question.
Assume that instead of 3 users, there are, say, 100 users. Does that
mean that 100 views have to be created - one for each user? If yes,
then this means that the ASP application that will be accessing the
columns must have 100 If....Else statements with the ConnectionString
having different UIDs & Passwords something like this (assuming that
each user has to enter a password in the ASP application first before
proceeding further):
----------------------------------------
Dim strPassword
strPassword=Request.Form("pwd") 'collecting the password the user has
entered
If(strPassword="pwd1") Then
"Provider=SQLOLEDB;Server=(local);Database=ARPAN;UID=uid1;PWD=pass1"
ElseIf(strPassword="pwd2") Then
"Provider=SQLOLEDB;Server=(local);Database=ARPAN;UID=uid2;PWD=pass2"
ElseIf(strPassword="pwd3") Then
"Provider=SQLOLEDB;Server=(local);Database=ARPAN;UID=uid3;PWD=pass3"
................
................
................
End If
----------------------------------------
This will be a tedious & monotonous approach! Would you suggest some
other workaround to this?
Also the ConnectionString that uses 'Integrated Security=SSPI' doesn't
include any UserID & Password; so how will SQL Server know which user
is trying to access data & restrict data access accordingly?
Thanks once again,
Regards,
Arpan
- Next message: Dan Guzman: "Re: Permissions!"
- Previous message: Arpan: "Re: Permissions!"
- In reply to: Dan Guzman: "Re: Permissions!"
- Next in thread: Dan Guzman: "Re: Permissions!"
- Reply: Dan Guzman: "Re: Permissions!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|