Viewing 15 posts - 16,396 through 16,410 (of 49,552 total)
Should be fine.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 4:32 pm
Mark F-428640 (9/27/2012)
INSERTINTO #CalendarKeys(
CalendarDayKey
,CalendarWeekKey
)
SELECT DISTINCT
CalendarDayKey
,CalendarWeekKey
FROMdbo.DimCalendarDay dcd
WHERELastProcessed = 1
Does your calendar table have duplicate rows?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 3:26 pm
sys.dm_os_buffer_descriptors
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 3:24 pm
See my edit of the previous post.
You're missing RID locks in your IN.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 3:20 pm
SQL Trace or extended events (depending on version)
btw, That's not actually a recompile. It's considered to be a compile because there's no matching plan in cache. Recompiles are only when...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 1:57 pm
No, it just means that there's a database-level lock. All sessions take a shared database lock, it's what prevents you from dropping an in-use database.
Have you tried google? I'm sure...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 1:51 pm
Worth trying, just watch the locking on your logging table, don't want exclusive locks held too long.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 1:17 pm
sql-lover (9/27/2012)
-Ability to see current type of lock: page, database, etc
You already have that, it's the resource_type columns
-Ability to see the specific locked resource's name (not id) . Example, table...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 1:07 pm
Insert the data into a table variable, after the rollback insert that into a real table or whatever else you want to do with it.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 12:58 pm
Pretty much. There are maybe 3 smallish things that changed in the DB engine between 2008 and 2008 R2 and some bug fixes. Most of the R2 stuff was...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 12:05 pm
Yes
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 10:06 am
Well, you can't kill a system process (and the old rule that spids < 50 are system is no longer true, there can be system spids with session IDs higher)
KILL...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 10:03 am
I suspect what you want here is a DDL trigger on create database, not a login trigger.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 9:43 am
Close
The non-leaf levels have just the key columns, leaf levels have all the columns in the table.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 9:39 am
Bear in mind that the clustered index is the table and hence has all columns present at the leaf level.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 27, 2012 at 9:10 am
Viewing 15 posts - 16,396 through 16,410 (of 49,552 total)