Forum Replies Created

Viewing 15 posts - 871 through 885 (of 8,416 total)

  • RE: how to inser this xml string to my table?

    DECLARE @xml xml =

    N'<?xml version="1.0" encoding="utf-16"?>

    <TBL_FACTOR>

    <RD_FACTOR>

    <ID>1</ID>

    ...

  • RE: Materialized view in sql server

    karthikaug18 (1/31/2012)


    Does the indexed view will update periodically on commit like in oracle.?

    Any data modification query that affects an indexed view maintains the view directly in the query plan that...

  • RE: sql query

    shah.simmy (1/30/2012)


    hi

    i have a table Product like this CustomerId,Product,quantity

    ...

  • RE: joins

    Koen Verbeeck (1/31/2012)


    It's probably a language thing 😀

    I understand that the optimizer can switch joins, but I'm confused by the "uneven rows" part.

    I guess it doesn't matter if a table...

  • RE: Need help with a Not Exists sub query please

    Expressing this sort of requirement using a logical (anti-) semi-join using EXISTS, INTERSECT, or EXCEPT seems more natural to me than introducing NULLs with an outer join, and then filtering...

  • RE: joins

    Koen Verbeeck (1/31/2012)


    Yes, but I don't think it matters if a table has an even or uneven number of rows.

    This may be a language thing, but we are talking about...

  • RE: Help me

    Loundy (1/31/2012)


    I've seen a few examples on the forums where some people have used a CTE with the row_number() function and others have used cross apply - I understand both...

  • RE: Any Other Problem with NOLOCK other than Dirty Reads?

    Rob-350472 (1/31/2012)


    Just wondering what you'd make of using nolock in this situation...

    Running that query against a large set of customers appears to prevent others from adding a communication until the...

  • RE: Any Other Problem with NOLOCK other than Dirty Reads?

    Rob-350472 (1/31/2012)


    Are there any implications for database storage and or disk use of going down the snapshot route? That's what seems to be ringing some bells?

    Yes you might need to...

  • RE: Can I use PIVOT on this table?

    Try this too:

    SELECT

    [Name1] = MAX(CASE WHEN tp.RowNum = 1 THEN tp.Name END),

    [Name2] = MAX(CASE WHEN tp.RowNum = 2 THEN tp.Name END),

    ...

  • RE: Help me

    A second option:

    SELECT

    c.CategoryId,

    c.NameCategory,

    Top1.NameDetail

    FROM dbo.Category AS c

    CROSS APPLY

    (

    SELECT TOP (1) *

    ...

  • RE: joins

    Koen Verbeeck (1/31/2012)


    The number of rows are not important for a join. (at least not if they are even or not)

    The optimizer has to choose one row source in a...

  • RE: joins

    "diLip" (1/31/2012)


    when performing left outer join or right outer join considering tables with uneven number of rows, who does sql server

    decide the order of the tables?

    The optimizer considers different join...

  • RE: Trying to improve query, strange execution plan

    elogen (1/30/2012)


    Well what do you know, the inline string split has resulted in a parallel execution plan!

    Cool.

    If you look at the query plan attached, even though it is very quick,...

  • RE: Any Other Problem with NOLOCK other than Dirty Reads?

    GSquared (1/30/2012)


    It will potentially save the CPU overhead of establishing a shared lock. On a seriously overloaded system, that could be beneficial.

    The Read Committed isolation level guarantees two things:...

Viewing 15 posts - 871 through 885 (of 8,416 total)