I am using Classic asp and SQL Server 2005.
This is the code that works (provided by another member):
sqlStr = "USE "&databaseNameRecordSet.Fields.Item("name")&";SELECT permission_name FROM fn_my_permissions(null, 'database')"
This code checks what permissions I have in this database - the problem is - if I do not have permission, it throws an error and does not continue to draw the rest of my page.
Anyone have any ideas on how to fix this?
Thanks a lot Joel
source
share