Quantcast
Browsing all 3587 articles
Browse latest View live

Re: how to use audit to monitor sp runing and time?

got it. object name should be dbname.dbo.myproc. Thanks.

View Article


Re: how to use audit to monitor sp runing and time?

I try this for single proc, like:sp_audit 'exec_procedure', 'all', 'dbname.dbo.myproc' ,'on'it is fine. Then I try to do this for all sp. try following:sp_audit 'exec_procedure', 'all', 'all' ,'on'it's...

View Article


how to get client ip address in audit records?

I am trying ase 12.5 audit system. I enabled audit for login from powerbuilder app and got records like:  45116605/15/2014 1:50:10.570 PM1375[NULL][NULL]myusermydb[NULL][NULL]; ; ; ; , 192.168.1.72; ;...

View Article

how to get client IP or host name or program name in stored procedure?

Suppose I run a sp for sybase ase. Firstly I need to connect to ase with specific loginname, then I have spid for this session. sp_who can give me the ip/hostname/programname. then with this spid, I...

View Article

Re: how to get client IP or host name or program name in stored procedure?

Try this:  select ipaddr, hostname, program_name from master..sysprocesses where spid = @@spid

View Article


how to send out email from table data every day?

want to implement email function: send out data in email from a table with select everyday how to implement it in ASE 12.5?

View Article

Re: how to send out email from table data every day?

You can use the Job Scheduler functionality within ASE or a UNIX OS cron job to cause something to happen at a particular time every day. With Job Scheduler, you might have it use xp_cmdshell to...

View Article

Re: how to get client IP or host name or program name in stored procedure?

I have a small write up on a similar issue over at Stack Exchange. sql - Sybase sp_who truncates hostname - Stack Overflow

View Article


isql output is Hexadecimal

Use isql command on Linux connect ASE 12.5 and try to access any table in mydb likeselect * from mytab All output is Hexadecimal. but if I access this database with tool like powerbuilder, the output...

View Article


Re: isql output is Hexadecimal

The behavior doesn't sound familiar. what version of isql (isql -v) ?perhaps post a brief example of the output?is this really specific to just a particular database ("this database"), i.e. doesn't...

View Article

Re: isql output is Hexadecimal

Is the data in UTF - e.g. UTF8???  and if so, did you connect with isql -Jutf8???

View Article

Re: isql output is Hexadecimal

The way I run isql is:isql -Usa -Ppassword -Smyserver. I did not specify -J param. should be default. Here is info from log when ase started: 00:00000:00001:2014/05/29 10:52:21.68 server  SQL Server's...

View Article

Re: isql output is Hexadecimal

example:1> select bank from my_bank2>...

View Article


Re: Optimizer does not follow hint for index forcing (15.7 SP110)

Hi Andy, the link to "KBA 1988269" does not work, could you pls recheck? Thank You, Arthur

View Article

Re: Optimizer does not follow hint for index forcing (15.7 SP110)

Hi Arthur, I just re-checked the link and it worked fine for me. Can you successfully display other KBAs if you go via support.sap.com? Cheers,Andy

View Article


Re: Optimizer does not follow hint for index forcing (15.7 SP110)

..Just to add to that.  If you specified an index hint on a view it won't work, but it will give you a warning to advise as much.  What can happen from time to time is the index hint itself can end up...

View Article

Re: Optimizer does not follow hint for index forcing (15.7 SP110)

Thanks to All, I will use AP in such cases. I got some very poor optimizer choices , as we are in oltp goal ,( i inherited of this situation ) , and very mush testing is needed to use mix goal. What I...

View Article


optimize union in ase query

we have a "select" query using 3 union operators (4 selects in total). In ASE 12.5.4 ESD# 10 executes in 2 sec, in ASE 15.7 SP103 it needs 88sec. If I run only 2 "select" (one union) it runs fast I...

View Article

Re: optimize union in ase query

Hi, When you use the 'parallel hints', does this actually then show you a parallel query plan or is it being ignored? You may well need to enable parallel at server-level, 'max parallel degree' etc to...

View Article

Re: Optimizer does not follow hint for index forcing (15.7 SP110)

TF 15307 : ignore 'set forceplan on'TF 15308 : ignore index/parallel/prefetch/lru-mru hints

View Article
Browsing all 3587 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>