Re: Evaluate date field, use only if not null/empty in query.
select LastReqTime, BlockedOn, UncommitOpsFROM sa_conn_info()WHERE NULLIF (LastReqTime, '') < DATEADD(mi,-60,GETDATE()) AND BlockedON > 0 AND UncommitOps = 0
View ArticleRe: Evaluate date field, use only if not null/empty in query.
Thanks Volker,So after looking at the NULLIF function help section,if the LastReqTime = '' , NULLIF will return a null to the query,which I assume will stop the processing. If LastReqTime isn'tempty,...
View ArticleRe: Evaluate date field, use only if not null/empty in query.
> a null to the query,which I assume will stop the processing Just to confirm your correct assumptions - for your further journey into the three-value logic wonderland... A "<" comparison with a...
View ArticleRe: Evaluate date field, use only if not null/empty in query.
Volker,I had to read that a few times. I thinkthe below text should sum it up. "Select ouch FROM Possible_headacheWHERE ISPAINFUL sql_logic AND ISCONFUSING sql_syntax (WHERE NULLIF (comprehension,...
View ArticleRe: Evaluate date field, use only if not null/empty in query.
FYI, I tried to mark this one as correct but the option wasn't avail, just helpful, so I marked your reply to my comment with the clarification. Thanks again.
View ArticleRe: Evaluate date field, use only if not null/empty in query.
Volker, If you're willing, can you please tell me how to sort the returns on LastReqTime so that the one with the oldest time is on the top of the list? And the one with the most ocurrences in...
View ArticleRe: Evaluate date field, use only if not null/empty in query.
I stumbled upon Order By, and found that will sort by date and BlockedOn value, depending on which one I use as an argument. Next foray is to try to figure out how to get it to show ALL returns, and...
View ArticleShow all returns from a query without manually sort, also count returns by value
I have this code: select LastReqTime,BlockedOn,UncommitOpsfrom sa_conn_info()WHERE LastReqTime < DATEADD(mi,-60,GETDATE()) AND BlockedOn > 0 AND UncommitOps = 0 An example of the return is: Is...
View ArticleRe: Evaluate date field, use only if not null/empty in query.
Just keep in mind that, again, LastReqTime is a varchar, so sort order will be alphabetically rather than chronologically. For values representing a correct datetime value, that will work.To retrieve...
View ArticleRe: Evaluate date field, use only if not null/empty in query.
As usual, you've answered my question and taught me something at the same time. Believe it or not, I'm unused to actually having to ask for help. Usually Im the "GoTo" guy, but I'm new to SQL and I...
View ArticleRe: Show all returns from a query without manually sort, also count returns...
select BlockedOn, count (*) nfrom sa_conn_info ()where ...group by BlockedOn
View ArticleRe: Show all returns from a query without manually sort, also count returns...
What client software are you using? The dbisql utility is sometimes annoying when it forces you to scroll to see all the rows, but in my experience the number is far higher than 115. One method is to...
View ArticleConnection pooling issues
Hello, allI have a completely unclear picture regarding connection polling in our .NET service, which connects to SQL anywhere 16 through OdbcConnection class (c#). First of all, the service is getting...
View ArticleRe: Connection pooling issues
Hi Arcady, You can see the condition of the connection pooling from the database properties.(ConnPoolCachedCount, ConnPoolHits, ConnPoolMisses)For details, please see below."Database Properties window:...
View ArticleRe: Connection pooling issues
Thank you, KoichiI used the screen and I can, actually, see connection cache hits count quite high.But I also see connections appear and disappear in the connection screen. So, (and this is very...
View ArticleRe: SQL Anywhere 17.0.0.1358 constantly crashes (assertion fails 200505, 101412)
We've tried unloading database few times, running database on different hardware configurations, enabled request logging of SQL statements, updated DBMS version. However, nothing helped so far....
View ArticleRe: Show all returns from a query without manually sort, also count returns...
Volker, I'm sorry, I don't think I phrased my question properly.I would like to take the original query and display the originalinformation, but also have an additional field on each line...
View ArticleRe: Show all returns from a query without manually sort, also count returns...
Breck,I'm using isql. Thanks for the tip on OUTPUT TO, Ican use that to generate/email reports, which is mynext project once I get the count totals finished.
View ArticleRe: Show all returns from a query without manually sort, also count returns...
You might try the Window function count > count (distinct BlockedOn) over (rows between unbounded preceding and unbounded following)but at the risk of entering disappointment mode now, I recommend...
View ArticleRe: Connection pooling issues
Hi Arcady, Unfortunately, I don't know how to see the status of the connection pool in those tools.I will use the diagnosis communication message of the database server instead.You can see the log of...
View Article