ASP SQL Error Handling

Posted by J Harley on Stack Overflow See other posts from Stack Overflow or by J Harley
Published on 2010-05-27T09:01:22Z Indexed on 2010/05/27 9:01 UTC
Read the original article Hit count: 370

Filed under:
|
|

Hello,

I am using Classic asp and SQL Server 2005.

This is code that works (Provided by another member of Stack Overflow):

 sqlStr = "USE "&databaseNameRecordSet.Fields.Item("name")&";SELECT permission_name FROM fn_my_permissions(null, 'database')"

This code checks what permissions I have on a given database - the problem being - if I dont have permission it throws an error and doesn't continue to draw the rest of my page.

Anyone got any ideas on remedying this?

Many Thanks, Joel

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about asp-classic