Forum Replies Created

Viewing 15 posts - 2,566 through 2,580 (of 6,036 total)

  • RE: t-sql not committed

    When you run any program it must be compiled first.

    When SQL Server compiles your script without "GO" you table does not have that IDENTITY column yet, and compilation fails because...

  • RE: steve's dataphore

    steve dassin (4/1/2009)

    Ok. The new idea is actually an old idea that's never be tried. It's a relational system that most sql folks haven't gotten their head into and/or around....

  • RE: steve's dataphore

    steve dassin (4/1/2009)


    Thanks for bursting my balloon ;-)::-)

    Do you really think I'd be wasting my time if dataphor represented the same old, same old!:w00t:

    somewhat best,

    steve

    http://www.beyondsql.blogspot.com

    You did not answer the question.

  • RE: steve's dataphore

    steve dassin (4/1/2009)


    Sergiy (3/30/2009)


    Yeah, I know.

    All algorithms are built, all math tasks are solved, all music is writen, all paints are painted.

    Universal excuse for mediocre for all times.

    Well you seem...

  • RE: Make my query efficient

    GSquared, correlated subquery is bad enough by itself, but 2 correlated subqueries in a single query - it's just a killer.

  • RE: CASE vs UNION

    Andrew Winch (3/31/2009)


    So what you are saying is that even with the complexity of the CASE added to the query, the number of scans needed by the UNION ALL is...

  • RE: CASE vs UNION

    mithun.gite (3/31/2009)


    hi,

    as per me avoid using cases in select stmt... and better u go with the union all option , i think i would have opted for union all as...

  • RE: CASE vs UNION

    Andrew Winch (3/30/2009)


    Sergiy (3/30/2009)


    Why do you think so?

    Can you provide any logical grounds?

    Jeeze, chill out!

    I had a gut feeling or, to better define it, a SQL newbie opinion.

    Sorry...

  • RE: steve's dataphore

    Yeah, I know.

    All algorithms are built, all math tasks are solved, all music is writen, all paints are painted.

    Universal excuse for mediocre for all times.

  • RE: CASE vs UNION

    Andrew Winch (3/30/2009)


    Personally I would think that the CASE would be faster but I could be wrong. 😉

    Thanks in advance

    Andrew

    Why do you think so?

    Can you provide any logical grounds?

    Try to...

  • RE: steve's dataphore

    steve dassin (3/29/2009)


    You're in the hall of fame, which one got you there?:-)

    Neither. 😉

    Would you consider the present fuster cluck of technologies the best IT can do? :w00t:

    Apparently, yes.

    While 90%...

  • RE: Getting XML formatted results From SQL 2000

    Add a fake table on top of your query:

    select RootName, Name

    from (select NULL as RootName) ROOT

    INNER JOIN sysobjects ON xtype = 'U'

    FOR XML AUTO, ELEMENTS

  • RE: steve's dataphore

    There are 2 types of knowledge.

    You may know everything about nothing or nothing about everything.

    Universal tools are good, but there is a tiny problem: they don't really work for any...

  • RE: Extremely slow View - can I 'preprocess' the data?

    Try to find and eliminate all implicit conversions in your view.

    They happen when you join tables by columns having not the same data type.

    You may also create "temp tables" in...

  • RE: DateDiff if null

    SQL33 (3/23/2009)


    Select (case when (leavedate is null)

    then datediff (day,enterdate,[date])

    else datediff (day,enterdate,leavedate) end as 'totaldays'

    from reservations

    produces

    Incorrect syntax near the keyword 'as'.

    Count your brackets.

    select datediff (day,enterdate,coalesce(leavedate,[date])) as 'totaldays'

    from reservations

    produces the...

Viewing 15 posts - 2,566 through 2,580 (of 6,036 total)