Forum Replies Created

Viewing 15 posts - 1,786 through 1,800 (of 7,636 total)

  • RE: How to get the root node in a table

    I think that what you really want is a recursive View, like this:

    CREATE VIEW OrgLevels AS

    WITH cteRecur AS (

    SELECT r.OrgUnitID, o.Parent, 1 as Lvl

    FROM RSUNew r

    LEFT JOIN ISC_OrgUnits o ON...

  • RE: XML In SQL Server 2005

    ramsp (8/12/2009)


    How can we read the following structure in SQL 2005?

    ...

  • RE: UPDATE trigger preventing table updates?

    Actually, sending to DBMail should be OK within a trigger. Unlike SQL Mail. DBMail is mediated through Service Broker under the hood, so those Email problems like network delays,...

  • RE: Synchronizing two database

    ..+ hunter +.. (8/12/2009)


    Hi Lowell

    Thanks for a quick response, Actually my main goal here is I have two database in where it can be place in the same server (what...

  • RE: FTP from Sql Server stored procedure

    Try executing this command yourself manually from within SQL Server and see what you get:

    EXEC master..xp_cmdshell 'getfiles.bat'

  • RE: Can I determine SQL install date using a TSQL script?

    rudy komacsar (8/12/2009)


    How about one more solution:

    use master

    go

    select createdate as 'Sql Server Installation Date'

    from sys.syslogins

    where sid = 0x010100000000000512000000 -- language neutral for NT AUTHORITY\SYSTEM

    go

    Very cool, Rudy!

  • RE: Checking for Overlap in Date Ranges

    jack ha (8/12/2009)


    so is there any way to achieve this faster?

    ...

    does it help if i index the BSD && BED ?!

    Yes, definitely.

    my real example includes more : a booking...

  • RE: BNF Basics

    Nice article. I have a couple of notes though:

    1) What you are describing is actually a simplified informal version of EBNF, not BNF (though the standards groups do...

  • RE: There's a Lot to Learn From Even Simple Puzzles

    Jeff Moden (8/11/2009)


    Phil had mentioned something about the documentation in my code... It's nothing compared to the absolutely incredible documentation that some others included in their code. For example,...

  • RE: Issue with assigning candidates to a review list

    WayneS (8/11/2009)


    ...

    BTW, I think Jeff calls it the "pseudo-cursor". Isn't it Phil that calls it the "quirky update"?

    Nah, that's me. Jeff hates the term "pseudo-cursor" and much prefer's Phil's...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/11/2009)


    Gianluca Sartori (8/11/2009)


    Barry is leading a new wave...

    A boring one.... 😉

    🙁 Wow, do I get that a lot. I have found that people find me much less...

  • RE: There's a Lot to Learn From Even Simple Puzzles

    Peso (8/11/2009)


    Congratulations Barry!

    It's a good thing they accepted your late submission 🙂

    True, and thanks again to you Peter for pointing out the bugs in my original solution so that I...

  • RE: checksums and unicode data

    Paul White (8/10/2009)


    Jeff Moden (8/10/2009)


    In Lowell's example, it also turned a 13 byte string into a 20 byte Varbinary so it's expensive, too. But, I believe that Barry's point...

  • RE: checksums and unicode data

    Paul White (8/10/2009)


    RBarryYoung (8/10/2009)


    To clarify: HashBytes w/ SHA1 is nigh-unbreakable.

    Hey Barry,

    On the other hand, it is relatively slow, only works on strings, and returns varbinary(8000).

    If the task is to detect...

  • RE: There's a Lot to Learn From Even Simple Puzzles

    :w00t: Woo-hoo! Finally, my name in lights!

    Thanks, Phil and Joe. You too Jeff. 🙂

    Fast though it was, my submission was far from elegant or simple....

Viewing 15 posts - 1,786 through 1,800 (of 7,636 total)