dbTalk Databases Forums  

Login Trigger for Trace Flag

sybase.public.ase.administration sybase.public.ase.administration


Discuss Login Trigger for Trace Flag in the sybase.public.ase.administration forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sandra
 
Posts: n/a

Default Login Trigger for Trace Flag - 05-01-2012 , 08:36 PM






Hello

I need some help to create a login trigger for setting a trace flag.
I have an issue that will be resolved by setting this trace flag but I
only want it set for 1 specific login id. I have found examples of
other login triggers but I am having a hard time figuring out how to
create one to set a dbcc traceflag. Any help would be appreciated.

Trace Flag 15393

Sandra

Reply With Quote
  #2  
Old   
Antony
 
Posts: n/a

Default Re: Login Trigger for Trace Flag - 05-02-2012 , 07:34 PM






On Wednesday, 2 May 2012 13:36:12 UTC+12, Sandra wrote:
Quote:
Hello

I need some help to create a login trigger for setting a trace flag.
I have an issue that will be resolved by setting this trace flag but I
only want it set for 1 specific login id. I have found examples of
other login triggers but I am having a hard time figuring out how to
create one to set a dbcc traceflag. Any help would be appreciated.

Trace Flag 15393

Sandra
What version are you on?
It should be as simple as creating a stored proc in the login's default database that has the code "set switch on 15393" and then setting that as the "login script" for the login. Pretty simple in my experience...

Reply With Quote
  #3  
Old   
Sandra
 
Posts: n/a

Default Re: Login Trigger for Trace Flag - 05-03-2012 , 10:14 AM



On May 2, 8:34*pm, Antony <albion26.... (AT) gmail (DOT) com> wrote:
Quote:
On Wednesday, 2 May 2012 13:36:12 UTC+12, Sandra *wrote:
Hello

I need some help to create a login trigger for setting a trace flag.
I have an issue that will be resolved by setting this trace flag but I
only want it set for 1 specific login id. I have found examples of
other login triggers but I am having a hard time figuring out how to
create one to set a dbcc traceflag. *Any help would be appreciated.

Trace Flag 15393

Sandra

What version are you on?
It should be as simple as creating a stored proc in the login's default database that has the code "set switch on 15393" and then setting that as the "login script" for the login. Pretty simple in my experience...
Thank you for your reply. I guess I am making it more complicated
then it needs to be. The example I saw was creating a lookup table
and then inputting data into that. It was just confusing to me. I
will go the route of creating a stored procedure and using that as the
login script.

BTW my version is ASE 15.0.3 ESD #4

Sandra

Reply With Quote
  #4  
Old   
Antony
 
Posts: n/a

Default Re: Login Trigger for Trace Flag - 05-03-2012 , 05:17 PM



On Friday, 4 May 2012 03:14:03 UTC+12, Sandra wrote:
Quote:
Thank you for your reply. I guess I am making it more complicated
then it needs to be. The example I saw was creating a lookup table
and then inputting data into that. It was just confusing to me. I
will go the route of creating a stored procedure and using that as the
login script.

BTW my version is ASE 15.0.3 ESD #4

Sandra
I'd avoid doing anything in the login trigger that could cause problems or fail... Inserting into a table could be subject to deadlocks, blocking, space issues etc.

Keep It Simple.

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.