Forum Replies Created

Viewing 15 posts - 2,416 through 2,430 (of 5,502 total)

  • RE: SQL2K -> SQL 2008, EXTREMELY slow cursor fetch

    Two more issues from my side:

    #1: Can you post the code from inside the c.u.r.s.o.r. *cough*? In most cases such a loop can be replaced with a set based solution...

  • RE: Ordinal position within XML

    billj-705548 (12/14/2010)


    I see you are using the spt_values table as simply a known sequence of numbers. The sql:column() XQuery extension function I've seen before but hadn't understood until now...

  • RE: Looping though XML Subnode and pass the Identity value

    krishusavalia (12/14/2010)


    Thanks for your fast reply,,,but InternalID is defferent in all the tables.

    I am facing the difficulty into pass the identitly value of Child table to the appropriate Kid values.

    Which...

  • RE: Ordinal position within XML

    Here's a possible solution:

    Please note that I used 'Make' as a hard coded value since it's used to limit the result set anyway (@ParameterName="Make"). therefore it doesn't make sense from...

  • RE: Looping though XML Subnode and pass the Identity value

    Will it ever happen that the source file could have data with identical Parent InternalID's, Child InternalID's or Kid InternalID's repeated within different nodes?

    Something like

    Parent InternalID="154805"

    __Child InternalID="4926250"

    ____Kid InternalID="3406436"

    __Child InternalID="xyz"

    ____Kid InternalID="3406436"

    Parent...

  • RE: Need some help with a large data volume optimization

    Any chance to post the index def for #DelPortList and PortSecAgg? It seems like the clustered indexes don't match.

    And now I'm totally guessing: batch001 doesn't have a spool since there...

  • RE: Canned query suddenly stopped working

    I'm sure this sproc did never run before since the syntax is incorrect.

    My guess would be that the lower part of the query (starting with "6 = receipts") usually is...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (12/14/2010)


    Is it now more, or less, frightening?

    Yes. More or less. 😀

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (12/14/2010)


    Does this frighten anybody else? ...

    Not as much as the reverse version of "99 bottles of beer" going on right now regarding Stefans "join performance" issue...

    While we're at it:...

  • RE: How to keep null as blank in datetime data?

    adonetok (12/14/2010)


    I tested it but became 'Jan 1 1900 12:00AM'

    The reason is rather simple:

    Internally, SQL Server stores datetime values as two 4-byte integers (see BOL for details).

    A blank string...

  • RE: SQL2K -> SQL 2008, EXTREMELY slow cursor fetch

    Can you change your 2008 c.u.r.s.o.r. * cough* declaration to use TOP 1 so you have just on path and post the actual execution plan of it together with the...

  • RE: Round to next 1000 or 100 without Ceiling function

    parthi-1705 (12/14/2010)


    PRINT (CAST(12001 AS INT)/1000 + (CASE WHEN 12001%1000=0 THEN 0 ELSE 1 END))*1000

    Actual data is in float so we cant use modulo operator

    Thanks

    Parthi

    Then you'd just have to cast...

  • RE: Are the posted questions getting worse?

    GSquared (12/14/2010)


    Alvin Ramard (12/14/2010)


    I'd prefer a picture of the horse stepping on the iPad. 😀

    How about a horse stepping on an iMat?

    With an iMat Michael Flatley surely would have...

  • RE: Round to next 1000 or 100 without Ceiling function

    GSquared (12/14/2010)


    LutzM (12/14/2010)


    Another option not using any of the ROUND/FLOOR/CEILING functions:

    PRINT (CAST(12307.96 AS INT)/1000 + 1)*1000

    Does it make sense to use it? I don't think so.

    That won't "round" correctly if...

  • RE: iPads for Christmas

    Right now I have a rather old-standard cell phone (no iPhone, pretty much all I can do is make and receive phone calls 🙂 ) and a laptop. That's the...

Viewing 15 posts - 2,416 through 2,430 (of 5,502 total)