Hi All,
We have a web based Intranet system, which inserts/updates records in a database. The flow is:
1. Webpage1 has 4 buttons.
2. If you click on button1 it goes to a form which you fill in and subimit.
3. On submit, it runs an asp script to insert the record.
The problem is that if the user does not have permissions to insert then an error is returned.
I want to establish that the user does not have permissions up front, at Step 1, when you click on the Button1.
The users are internal & all log into NT. SQL server is configured with 'Windows Only' authentication mode.
So I thought that if we pick up the Windows 2000 username and groups that the user belongs to; and then compare with the permissions in the db (master..sysxlogins and DB1..sysuser & DB1..sysprotects) then we should be able to evaluate if the user WILL get the error and handle the error here.
Can anyone suggest a solution?
All help appreciated.
Thanks TK
We have a web based Intranet system, which inserts/updates records in a database. The flow is:
1. Webpage1 has 4 buttons.
2. If you click on button1 it goes to a form which you fill in and subimit.
3. On submit, it runs an asp script to insert the record.
The problem is that if the user does not have permissions to insert then an error is returned.
I want to establish that the user does not have permissions up front, at Step 1, when you click on the Button1.
The users are internal & all log into NT. SQL server is configured with 'Windows Only' authentication mode.
So I thought that if we pick up the Windows 2000 username and groups that the user belongs to; and then compare with the permissions in the db (master..sysxlogins and DB1..sysuser & DB1..sysprotects) then we should be able to evaluate if the user WILL get the error and handle the error here.
Can anyone suggest a solution?
All help appreciated.
Thanks TK