Viewing 15 posts - 136 through 150 (of 311 total)
mahbub422 (5/10/2010)
Now I need little bit more support. You helped me to count the left and right side child nodes. Now I need the list of those left...
May 11, 2010 at 2:22 am
rjv_rnjn (5/6/2010)
May 6, 2010 at 10:22 am
Jeff Moden (5/5/2010)
May 6, 2010 at 5:31 am
kramaswamy (5/4/2010)
Was really hoping for some better way of doing it :/
I'm not sure what you are hoping for, but maybe this one will do:
DECLARE @test-2 TABLE
(
...
May 4, 2010 at 12:52 pm
Paul White NZ (4/30/2010)
Peter Brinkhaus (4/30/2010)
April 30, 2010 at 8:31 am
Paul White NZ (4/30/2010)
Peter Brinkhaus (4/30/2010)
April 30, 2010 at 8:00 am
If the LunchPeriod is not explicitly inserted it's default value will be filled in the 'inserted' row set within the trigger. Given that it easy to modify and even simplify...
April 30, 2010 at 7:30 am
Atif Sheikh (4/29/2010)
DECLARE @MissingNumbers TABLE (N INT)
Declare @vMax int
INSERT INTO @MissingNumbers
VALUES (1),(2),(4),(5),(7),(8),(11),(12),(13),(15),(17),(19),(20)
Set @vMax = (Select MAX(N) from @MissingNumbers)
;with wcte as (
Select Top(@vMax) ROW_NUMBER() over(order by a.N) NAll
from @MissingNumbers a, @MissingNumbers...
April 29, 2010 at 2:19 am
I suppose a reseed is done when IDENTITY_INSERT is turned off. Maybe this behaviour can be derived from the description of DBCC CHECKIDENT in BOL:
DBCC CHECKIDENT ( table_name, RESEED, new_reseed_value...
April 28, 2010 at 9:08 am
As this is a SQL2K8 forum, I used the new SQL2K8 syntax for inserting multiple values. If you are using SQL2K5 then you should use UNION ALL indeed.
Peter
April 28, 2010 at 7:01 am
I'm not sure if this fulfills your requirements, but you can use a tally or numbers table to find the missing numbers:
DECLARE @MissingNumbers TABLE (N INT)
INSERT INTO @MissingNumbers
VALUES (1),(2),(4),(5),(7),(8),(11),(12),(13),(15),(17),(19),(20)
;WITH Tally(N)...
April 28, 2010 at 6:46 am
Here's another parameterized version. Thanks to Quatrei.X for the test script.
Declare @tbl Table
(
customer nvarchar(10),
product...
April 28, 2010 at 2:44 am
Paul White NZ (4/6/2010)
Anyway, it was just a nuance. Just tried to look for an answer why the function posted by the OP wasn't considered deterministic.
If you look back to...
April 6, 2010 at 6:01 pm
To me it seems MS has reinvented its own definition of (non-)determinism. Given the MS definition, even GETDATE() would be a deterministic function, if only for 3ms. Anyway, it was...
April 6, 2010 at 5:11 pm
Unless I am missing something completely, it looks like the 'deterministic' function is just an identity function. Looks like 'SELECT @i = a FROM dbo.t ...' is a no-op because...
April 6, 2010 at 4:30 pm
Viewing 15 posts - 136 through 150 (of 311 total)