Re: select * from .. with recompile
Hi Mark, I was looking in the Reference Manuel.I have found the reference in Transact-SQL guide. I was trying to do it outside of the SP (directly in isql) but I can see that it's only possible is only...
View ArticleRe: select * from .. with recompile
I've put in an internal request to have the Reference Manual entry on SELECT updated with the syntax and description of the new FOR RECOMPILE option. Cheers,-bret
View ArticleRe: select * from .. with recompile
..this functionality was extended to include more DML statements (update, delete, insert but NOT select into or merge) in 15.7 SP136 and 16 SP02PL02 and SP01PL03. Those docs probably need updating too.
View ArticleNeed help -- strange issue with ' data with cluster index'
Note : Same SQL working fine in all other servers of same version but on one server it is failing with following error .. Version : Adaptive Server Enterprise/15.5/EBF 19396 SMP ESD#5/P/RS6000/AIX...
View ArticleRe: Need help -- strange issue with ' data with cluster index'
Hi, this is the normal behavior. You can see the explanation in the documentation.SyBooks Online Thanks
View ArticleRe: Need help -- strange issue with ' data with cluster index'
I would normally expect this error. On the servers where you do not get the error, does the tempdb have then sp_dboption "auto identity" or "identity in nonunique index" options turned on? -bret
View ArticleRe: Need help -- strange issue with ' data with cluster index'
I know 'clusted index' -- will not allow duplicate row bit allow dup key .but same sql working fine in other servers . let me check db option ,
View ArticleRe: Need help -- strange issue with ' data with cluster index'
none of option is on in any servers .. Server with error : (sp_helpdb tempdbsa)no_recovery select into/bulkcopy/pllsort, trunc log on chkpt, abort tran on log full, mixed log and data, user created...
View ArticleRe: Need help -- strange issue with ' data with cluster index'
..check the default locking scheme sp_configure 'lock sc' The one where it works is probably dol (drl or dpl), the one where it fails will be allpages.
View ArticleRe: Need help -- strange issue with ' data with cluster index'
look like we are coming close .. Server with error : Allpages sp_configure 'lock sc'----Parameter Name Default Memory Used Config Value Run Value Unit...
View ArticleRe: Need help -- strange issue with ' data with cluster index'
Thanks All . Default config (lock schema) on culprit server was 'allpages' and other servers was 'datarows' .I changed lock schema .. now working perfectly fine . This is something new for me ...Thanks...
View ArticleDoes ins_by_bulk work ?
Reading this document I see I should be able to use ins_by_buk to potentially increase performance of inserts.According to the doc, running set showplan on set ins_by_bulk on then running a...
View ArticleRe: Does ins_by_bulk work ?
What document are you referring to? Have you looked at ASE 16.0 SP02 - Performance and Tuning Series: Query Processing and Abstract Plans, ins_by_bulk Restrictions... there's a laundry list of...
View ArticleRe: Does ins_by_bulk work ?
I got it to work on ASE 15.7 SP136 and ASE 16.0 SP02 PL03. Test harness: ==========================-- Both dataservers using 'max worker processes' = 10-- and 'max parallel degree' = 5.use tempdbgo if...
View ArticleRe: Does ins_by_bulk work ?
Cool. A quick question Mark.Is parallelism (worker processes + DOP) required for this feature or can it work without that too ? Thanks Avinash
View ArticleRe: Does ins_by_bulk work ?
With worker/parallel threads disabled, the query plan shows BULK INSERT being used but logical IOs against tab1 are only reduced by ~50% ... ======================ins_by_bulk=off Table: tab1 scan count...
View ArticleRe: Does ins_by_bulk work ?
Thanks. Your 2 postings fixed it. The list of restrictions helped and also I wasn't using - set statement_cache offTurning enable bulk inserts on and off doesn't make any difference if you're using...
View ArticleRe: Does ins_by_bulk work ?
Mark Another way would be to find stats for table only (without index) and table with index(es).Parallelism may be using one thread per object (base table + index(es) ) thus resuslting in excellent...
View ArticleRe: Need help -- strange issue with ' data with cluster index'
just wanted to know is this bug or feature ..?
View Article