Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining SQL Server user's permissions from ADQ

Status
Not open for further replies.

mikecarter

Programmer
May 4, 2003
1
EG
How can I determine whether a user has read-only or read-
write access to a database when I connect to it using ADO?

I am hoping to find a more elegant solution than just
attempting to modify data in a particular table and
checking for errors.

I have tried to use the "mode" property of the Connection
and Record objects, but to no avail.

This is running against a MS SQL Server, and we are using
local SQL server login accounts (not NT domain accts).
This for an ASP script, if that matters. I basically want
the user to see an updatable form if their logon
credentials have read-write access to the DB, or simply
see a plain-jane table of the data if their credentials
have read-only access to the database.

I am fairly new to ADO. Thank you for your help!
 
Have you looked at the SQL Server stored procedures? You might ask your question in the SQL Server forum. If you can't read the permissions though a stored procedure then you can't do it from ADO ;-)


-pete
I just can't seem to get back my IntelliSense
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top