"inserted" table not allowed in derived table query
The "inserted" table not allowed in derived table query. create trigger a on newtablefor insertasinsert into othertableselect a,c from( select distinct a,b,c from inserted) dt Msg 208, Level 16,...
View ArticleRe: "inserted" table not allowed in derived table query
My guess is that inserted table itself is a pseudo ( derived ? ) table assembled from transaction log. So as such you may not be able to use it further to derive another table on the fly. If you...
View ArticleRe: "inserted" table not allowed in derived table query
> If you really want to use the inserted data further you may have to save it into a (temp) table first. You can't insert into a temp table using a trigger (its a really annoying limitation that...
View ArticleRe: "inserted" table not allowed in derived table query
Correct. Since creation of a table ( normal table or hash temp table) is not allowed in a trigger our options are really limited. Of course nothing stops us from creating a normal or a hash table...
View ArticleRe: Prevent ASE from overriding trans logs ..
Javier Both database name and device name can be used as normal SQL variables,So I would prefer not to use dynamic SQL. With @databasename and @devicename declared as varchar SQL variables of...
View Articlesp_who ouput in ASE 16 sps01
In sp_who output it shows "compling" in cmd column . Is there any reason for it .
View ArticleRe: update Index Stats using Sampling
Hey Jeff, update (index) stats with hashing has been available since 2012 (v15.7 ESD#2); you stressed SP130+, is this due to the bugs or something else?We did notice that high domain hashing might...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
FYI... I raised this as an incident and support have told me to increase the procedure cache From the sp_monitorconfig output in the sybdiag, the procedure cache, Reuse_cnt value is 59073.As per KBA...
View ArticleRe: update Index Stats using Sampling
Update stats with hashing was added for LOW domain attributes only starting in ESD #2, but really wasn't very usable until about ESD #4 (we tried using them on a early project with mixed results until...
View ArticleRe: update Index Stats using Sampling
Thanks Jeff for your explanation, we are running SP132 and SP135. That bug is related to @@io_busy which over weighted IO busy, this is annoying since many DBAs still use sp_monitor to get the CPU/IO...
View ArticleRe: update Index Stats using Sampling
Sorry - this wacky editor on SCN is giving me fits on cut & pasting....will try again... What you might want to do is look at monProcessWaits before/after the update stats - if you see most of the...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
That may be a band-aid....I agree that the reuse count >0 *generally* means it is insufficient, but with 19GB of proc cache - it seems a bit excessive. If you need to increase proc cache as a...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
> I would take a look at monCachedProcedures and see how many plans per proc > are there and how much proc cache they consume/how long in cacheIs this the correct way of looking at it ?...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
Yes wrt first query....actually, that proc is likely not too bad - it is ~1MB of proc cache per plan - I have seen a single plan for a single statement take 100KB. Sometimes it isn't the length of...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
what monProcedureCacheMemory|ModuleUsage show?why ASE is bounced weekly?
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
> As far as 0 execution counts, I know for cached statements, it typically is due to a statement that> aborted. Not likely for a proc...what is more likely is recompiles - e.g. exec with...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
> why ASE is bounced weekly?Its something we set up when using 15.6 SP120 - SP132 as the server used to frequently crash (Reboots would make this less likely).SP134 might not need it but since we've...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
If all ExecutionCounts are 0 for all plans, then it is possible that the proc starts executing and execution is aborted - e.g. client kills the query/session....if there exec times/cpu times seem...
View ArticleRe: "configure size for data cache (tempdb_cache1) is not sufficient to...
> If all ExecutionCounts are 0 for all plans, then it is possible that the proc starts executing and execution is > aborted - e.g. client kills the query/session....if there exec times/cpu times...
View ArticleRe: "inserted" table not allowed in derived table query
> Of course nothing stops us from creating a normal or a hash table ahead of time nothing except wanting a high performance system with minimal deadlock potential.
View Article