Viewing 15 posts - 7,186 through 7,200 (of 7,597 total)
ben.brugman (9/17/2012)
Here ScottPletcher is the winner, but he used 'extra' intelligence to solve the puzzle using reasoning he solved part of the puzzle, if that is allowed, some more reasoning...
September 17, 2012 at 8:42 am
This is an old programming trick. When New York State used Social Security Numbers for student ids, they forced students to get an SSN or they assigned a dummy number...
September 14, 2012 at 4:26 pm
ScottPletcher (9/14/2012)
SQL Kiwi (9/14/2012)
My guess is that there is no special cache for definitions; the pages of sys.sysobjvalues are cached in the buffer pool just like the pages of any...
September 14, 2012 at 4:23 pm
Hmm, no good reason is materializing in my mind right now.
What method did you use to determine the freespace (change)?
September 14, 2012 at 4:09 pm
SQL Kiwi (9/14/2012)
My guess is that there is no special cache for definitions; the pages of sys.sysobjvalues are cached in the buffer pool just like the pages of any other...
September 14, 2012 at 3:57 pm
SQL Kiwi (9/14/2012)
The original source must stay available, so must be cached somewhere.
It's always available from disk of course. Must be cached? No. Might be cached? ...
September 14, 2012 at 3:54 pm
Better still, just always use 'YYYYMMDD[ 24h:mm:ss.sss]', which always works, regardless of SQL settings.
'20120427'
September 14, 2012 at 3:46 pm
SQL Kiwi (9/14/2012)
ScottPletcher (9/14/2012)
You do realize that comments still take up space in the proc cache, right?
They take up no space in the plan cache. The plan cache is...
September 14, 2012 at 3:19 pm
A company I worked for produces clothing catalogs... They now have multi-part keys into almost all their other tables (Brand, Year and catalogue code) which slows down development, testing and...
September 14, 2012 at 3:16 pm
Peter Brinkhaus (9/14/2012)
ScottPletcher (9/14/2012)
September 14, 2012 at 1:01 pm
I never stated, or implied, that the comments would affect the execution time (I said "procedure cache", not "plan cache"; I know some people use them interchangeably, but I don't...
September 14, 2012 at 12:37 pm
EDIT: removed, posted in wrong thread.
September 14, 2012 at 12:19 pm
Code below has fewer calcs and does not depend on any SQL date settings.
DECLARE @year int
SET @year = 2012 --<<-- chg as needed
SELECT
month_start,
...
September 14, 2012 at 10:18 am
Lynn Pettis (9/14/2012)
/****** Object: UserDefinedFunction [dbo].[DelimitedSplit8K] Script Date: 09/14/2012 09:43:51 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DelimitedSplit8K]') AND type in (N'FN', N'IF',...
September 14, 2012 at 10:00 am
SELECT
TimeFrame / 100, CAST(TimeFrame AS int) % 100
FROM dbo.TimePeriod
WHERE
model= 'A1' AND
TimeFrame / 100 = (
...
September 14, 2012 at 9:49 am
Viewing 15 posts - 7,186 through 7,200 (of 7,597 total)