Viewing 15 posts - 481 through 495 (of 2,171 total)
Can I play too?
DECLARE@Sample TABLE
(
id int primary key clustered,
col1 numeric(6, 2),
col2 numeric(6, 2),
col3 numeric(6, 2),
col4 numeric(6, 2),
col5 numeric(6,2),
col6 numeric(6,2),
col7 numeric(6,2),
col8 numeric(6,2)
)
INSERT@Sample
SELECT1, 2.35, 3.01, 3.49, 4.25, 4.79, 5.36, 5.82, 6.31 UNION...
April 8, 2009 at 6:13 am
Some systems used first byte to hold number of characters of string with a maximum of 255 bytes.
April 7, 2009 at 2:27 pm
Not necessarily. With SQL 2008 comes the ability of Filtered Indexes.
You can create an index on Bit1 = 1 only.
April 1, 2009 at 2:35 am
Bruce and GSuared, neither of your suggestion work with this test case
DECLARE @String VARCHAR(MAX),
@Size TINYINT
SELECT@String = 'Hello my name is Jeff. I need some help on a project because right...
March 18, 2009 at 3:52 pm
A good look at the reads required will reveal something
-- Peso
Table '#73E9A71D'. Scan count 7, logical reads 7, physical reads 0.
SQL Server Execution Times:
CPU time...
March 13, 2009 at 4:53 am
DECLARE@InputDate DATETIME
SET@InputDate = '02/mar/2009 13:15'
SELECT@InputDate AS theDay,
DATEADD(DAY, DATEDIFF(DAY, '17530102', @InputDate) / 7 * 7, '17530101') AS StartDate,
DATEADD(DAY, DATEDIFF(DAY, '17530102', @InputDate) / 7 * 7, '17530108') AS EndDate
March 13, 2009 at 3:45 am
Your primary key must exist of
1) The unique column
2) The check constraint
As seen among the comment for the link I posted earlier.
March 11, 2009 at 8:52 am
My best attempt this far is to have a trigger on tallynumbers table and report the number of records in a CountingTable.
That gave me a total of only 14 reads...
March 11, 2009 at 3:25 am
I created a TallyNumber table with only one column (ascending clustered primary key) and 2,000,001 records, ranging from 0 to 2,000,000.
First I tried your suggestion in the article, which gave...
March 11, 2009 at 2:21 am
DECLARE@Now DATETIME
SET@Now = GETDATE()
SELECT@Now AS [Now],
DATEADD(DAY, DATEDIFF(DAY, 0, @Now), 0) AS dateOnly,
DATEADD(DAY, DATEDIFF(DAY, @Now, 0), @Now) AS timeOnly
March 11, 2009 at 2:03 am
Viewing 15 posts - 481 through 495 (of 2,171 total)