Viewing 15 posts - 691 through 705 (of 902 total)
sql-noob (10/3/2012)
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 9:15 am
Try Adding an OPTION(RECOMPILE) to the SQL Statement that calls the CTE, as I suspect theres an element of paramater sniffing going on, whihc should be solved by this, it...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 9:12 am
sql-noob (10/3/2012)
No its not filtered, i also tried giving myself view level access on this particular view but that also didnt work out.
The reasons for asking the question were
1) As...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 8:59 am
Is the view filtered based on row level security, eg a User can only see Certain Products?
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 8:36 am
Mainly Task manager, though also resource manager.
This is the set up (using a template from SSMS)
-- ================================================
-- Template generated from Template Explorer using:
-- Configure Resource Governor.sql
--
-- Use the Specify Values...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 7:16 am
I think its the fact that the Row_number() requires an order by statement thus a sort, rather than an Identity which assigns the number as the data is returned.
I'd...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 6:09 am
Thanks Gaz, I've been through the documentation, a couple of times, this is the first real implementation, were planning on using the App_name in order to seperate the different...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 4:18 am
Can you provide the DDL for the tables and Indexes as they stand on Production so we can offer some help.
Has anyone changed anything on that table?
What is the sort...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 1:38 am
Karthick,
Jeff was making valid point about about how to create the Tally table in the first place, most people will write a while loop, or a recursive CTE rather than...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 3, 2012 at 12:59 am
As always a Fair point Jeff.
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 2, 2012 at 7:20 am
terry999 (10/2/2012)
BTW I was restricting to only chnage rows by comparing the checksum values.
I didn't know you could add additional filters after is...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 2, 2012 at 6:55 am
You can use the OUTPUT to insert rows into a table rather than the Outer Select, which is rather cumbersome.
this might be better, and you'd need to double check...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 2, 2012 at 4:54 am
While I agree its not a practical solution, as there are names (Yvonne, Pattinson, Lee, off the top of my head) where consecutive characters can be the same and so...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 2, 2012 at 2:02 am
select nc1,nc2,class from
(select *,row_number() over (partition by rnk order by rnk) rnk1 from(
select * from
(
select nc1,nc2,class,dense_rank() over (order by (nc1+nc2)/2) rnk from #nc
)a
)b
)c where rnk1...
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 1, 2012 at 4:35 am
nice once dwain, never thought of that, though I suppose it depends on how much you can change the underlying database structure.
_________________________________________________________________________
SSC Guide to Posting and Best Practices
October 1, 2012 at 4:19 am
Viewing 15 posts - 691 through 705 (of 902 total)