Viewing 15 posts - 9,796 through 9,810 (of 49,571 total)
Evil Kraig F (3/5/2014)
GilaMonster (3/5/2014)
create index IX_A_Col1 on A ( Col1, IndexID )
Having it as a second key column is more useful...
March 5, 2014 at 1:31 pm
Evil Kraig F (3/5/2014)
March 5, 2014 at 1:28 pm
I would create, as an index for that query:
create index IX_A_Col1 on A ( Col1, IndexID )
Having it as a second key column is more useful than having it as...
March 5, 2014 at 1:23 pm
N_Muller (3/5/2014)
March 5, 2014 at 1:02 pm
SQLRNNR (3/5/2014)
GilaMonster (3/5/2014)
SELECT *
FROM sys.dm_db_database_page_allocations(DB_ID('<Database Name>'), NULL, NULL, NULL, 'DETAILED') dpa
...
March 5, 2014 at 12:10 pm
iso is a CD/DVD image. Either burn it to a DVD and use that or get a program which can mount iso files as virtual drives.
March 5, 2014 at 12:09 pm
WaIIy (3/5/2014)
Now, does that in itself effect the plan cache(ability) at all of the SPROC?
No
Force any kind of recompile each time etc.?
No
March 5, 2014 at 12:06 pm
sqlbuddy123 (3/5/2014)
SELECT *, OBJ.name AS Object_Name
FROM sys.dm_os_buffer_descriptors AS bd
INNER JOIN
(
...
March 5, 2014 at 11:48 am
Potentially. I haven't tried this because I don't have a 2012 instance available. It's undocumented.
SELECT *
FROM sys.dm_db_database_page_allocations(DB_ID('<Database Name>'), NULL, NULL, NULL, 'DETAILED') dpa
WHERE allocated_page_file_id...
March 5, 2014 at 11:39 am
:hehe:
btw, these are valid
with cte as (
select Person
, row_number() over (order by Person) AS OrderingKey
...
March 5, 2014 at 8:49 am
You can't use a windowing function in a where clause. The examples you show work because they're not using a windowing function in a where clause, they're using it in...
March 5, 2014 at 8:09 am
ChrisM@Work (3/5/2014)
I think most folks do now know that the cluster keys behave similarly to include columns in nc indexes
Key columns, unless the nonclustered index is defined UNIQUE. Not...
March 5, 2014 at 7:07 am
ChrisM@Work (3/5/2014)
If the person looking at your query is a bogstandard TSQL developer, what would you expect them to know about index internals?
Nothing. I have to assume that because I'm...
March 5, 2014 at 7:01 am
ChrisM@Work (3/5/2014)
GilaMonster (3/5/2014)
ChrisM@Work (3/5/2014)
March 5, 2014 at 6:38 am
If you want to count the number of rows where the age is null, you probably want this:
select count(*) from dbo.prim
where age is null
Count(*) means count the number of rows....
March 5, 2014 at 6:27 am
Viewing 15 posts - 9,796 through 9,810 (of 49,571 total)