Forum Replies Created

Viewing 15 posts - 4,906 through 4,920 (of 14,953 total)

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (2/18/2011)


    GSquared (2/18/2011)


    Brandie Tarvin (2/18/2011)


    Stefan Krzywicki (2/18/2011)


    I wouldn't have any problems with his poor English skills if he wasn't being such a jerk about other people's.

    I agree. In fact,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Trying to determine the value one column when selecting MAX aggregate on another column

    You're welcome.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (2/18/2011)


    Stefan Krzywicki (2/18/2011)


    I wouldn't have any problems with his poor English skills if he wasn't being such a jerk about other people's.

    I agree. In fact, I was mentally...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: In what circumstances are there no other option than to use cursors?

    Gromey (2/18/2011)


    Oh yea, absolutely. For the most part, I only use loops when I'm doing mass updates or for copying/moving large sets of data from one database table to...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Server Name column in Multiserver Results

    Is it a named column in the query? If so, try grouping by it in a proof of concept query.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Trying to determine the value one column when selecting MAX aggregate on another column

    You can use the ranking functions and a CTE for this in SQL 2005 or later.

    Will look like:

    ;with Ranked as

    (select Row_Number() over (partition by Ev_Cat order by Ev_Date desc)...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Ian Scarlett (2/18/2011)


    Gianluca Sartori (2/18/2011)


    I apologize for provoking another forgettable page in SSC history.

    Don't appologize Gianluca. That sort of behaviour needs to be brought to people's attention.

    I just wish I'd...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SQLSERVER 2000 SQL UNION

    David Burrows (2/18/2011)


    string strsql = "";

    strsql += " Select '' AS [CustomerId],' ---Select Customer --- ' AS [CompanyName] ";

    strsql += " Union Select CustomerId, CompanyName ";

    strsql += "...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Extending minimum datetime values

    Jeff Moden (2/17/2011)


    danielagger98 (2/17/2011)


    I want to extend the minimum datetime value(1973), some of the oracle date fields have date 01-01-0006, not that it makes any sense.

    But if the management wants...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: query an xml file !?

    LutzM (2/17/2011)


    I'd rather go with

    SELECT

    x.i.value('(@parentStructId)[1]','int') AS ParentStructID,

    x.i.value('(@family)[1]','int') AS Family,

    x.i.value('(@subFamily)[1]','int') AS SubFamily

    FROM @xmlFile.nodes('/FamilyAndSubFamily/myStruct') as x(i);

    It performs better than the x.i.query('.').value approach. (see execution plan and statistics on a larger data...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: In what circumstances are there no other option than to use cursors?

    Jeff Moden (2/17/2011)


    Gromey (2/17/2011)


    However, I still believe that any query you can do with a cursor, you can also do with a loop.

    With only very rare exceptions, I believe that...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Data Compression - Clustered Index

    If it's XML data, you should store it as typed XML, with defined XML schemas. That'll help with storage size and compressibility.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: TSQL Help

    Do you know how to query a table and join it to another table?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Extending minimum datetime values

    You're pretty much going to be stuck using a string data type for these, and then doing transformations/redirects on them based on the logic your target database needs to comply...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Extending minimum datetime values

    Please don't double-post.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 4,906 through 4,920 (of 14,953 total)