If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Auditing a single login for db access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-11, 06:46
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 443
Auditing a single login for db access

Trying to see if sp_audit can be used to audit whether a login is connection to databaseB. It looks like only 'all' works and not a specific db/login which is what Im trying to avoid.

1> sp_audit 'login','testuser','mydb', 'on'
2> go
Msg 18222, Level 16, State 1:
Server 'SERVER', Procedure 'sp_audit', Line 240:
Object name must be 'all'.
(return status = 1)

1> sp_audit 'login','testuser','all', 'on'
2> go
Msg 18225, Level 16, State 1:
Server 'SERVER', Procedure 'sp_audit', Line 249:
Login name must be 'all'.


Saw some feature requests for this. But just want to check if there is any other method to achieve this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On