Forum Replies Created

Viewing 15 posts - 1,051 through 1,065 (of 1,424 total)

  • Reply To: Convert VBA function to SQL function

    The REPLACE function can do many things in SQL Server.  It's not really documented well and I usually have to experiment with it.  When the REPLACE function is itself called...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: EF Code-First

    Just to add more history here.  For application developers using SQL Server db's there used to be something called the Microsoft Enterprise Library.  Among other things it included tools and...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: EF Code-First

    Jeff Moden wrote:

    Are you saying that no one has created designs that exploit the inherent advantages of using stored procedures?

    From a SQL perspective I'm not saying that at all.  SQL developers...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: EF Code-First

    Jeff Moden wrote:

    I'm talking about people using the front end designers to create tables.  Some people do it right but, for the most part, it's done by people that have no...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: EF Code-First

    Jeff Moden wrote:

    I could be wrong but I'm pretty sure that's not what the OP is talking about.  I believe he's talking about the front-end Developers creating the tables on the...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Hierarchies on Steroids #1: Convert an Adjacency List to Nested Sets

    Jeff Moden wrote:

    Steve Collins wrote:

    That's freaking amazing.  It's awesome to see real in depth analysis.  Thank you for doing this.

    Jeff Moden wrote:

    Shifting gears a bit, since the Nested Sets method has most of...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Hierarchies on Steroids #1: Convert an Adjacency List to Nested Sets

    That's freaking amazing.  It's awesome to see real in depth analysis.  Thank you for doing this.

    Jeff Moden wrote:

    Shifting gears a bit, since the Nested Sets method has most of the goodies...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Hierarchies on Steroids #1: Convert an Adjacency List to Nested Sets

    Those columns are not needed, I think.  At the end of the 2nd article (allow me to quote you some Jeff Moden) it says:

    Last but certainly not least, if you...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parent-Child Hierarchy - Finding the root

    Jeff Moden wrote:

    Steve Collins wrote:

    Imo expressing the recursive "downlines" or "sort path" as nested json makes the information much more usefully accessible.  You can check out an example at:

    https://www.sqlservercentral.com/scripts/function-and-queries-to-convert-hierarchical-adjacency-to-nested-json-arrays

    Can you use the...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Parent-Child Hierarchy - Finding the root

    Imo expressing the recursive "downlines" or "sort path" as nested json makes the information much more usefully accessible.  You can check out an example at:

    https://www.sqlservercentral.com/scripts/function-and-queries-to-convert-hierarchical-adjacency-to-nested-json-arrays

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: EF Code-First

    SQL Espo wrote:

    What is the DBA world consensus on using this to implement databases for an application? An application developer presented this as the "future of EF" but I do not...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: query CTE

    It's conditional counting.  Sql is terrible at this.

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: query CTE

    Yeah I noticed that too.  My next attempt would be to use CROSS APPLY containing IIF function(s) (as many as necessary) and pass in a ton of variables.

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: query CTE

    This appears to work but it's not simple.  It defines the anchor records as having the minimum ArrivedDate where the doc_row_num<=2 and doc_row_num<= doc_count.  Then it inserts additional rows calculating...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Help in coalesce function in update statement

    /* without STRING_AGG */
    ;with
    ErrData1(tran_no, ref_no, ref_tamt) as (
    select t1.tran_no, t1.ref_no, t1.ref_tamt
    from @tran_dtl1 t1
    where t1.ref_tamt >...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

Viewing 15 posts - 1,051 through 1,065 (of 1,424 total)