Forum Replies Created

Viewing 15 posts - 211 through 225 (of 325 total)

  • RE: Entity Framework and SQL

    Yeah, that's almost always the moment someone asks "Can you hotfix this issue - but only for one client" and you really wish it was a per-database view rather than...

  • RE: Partioning Huge Table (650GB about)

    +1 for Temporal Tables as a great solution to this kind of problem and +10 if you're on 2017 and can just set a retention policy. It's a lot easier...

  • RE: Stored Procedure Analysis and Design

    There are various ways, all with there own benefits and after a while you just get a feel for it. That said, an approach that often works for for beginners...

  • RE: parsing log data

    I dunno, I'd take a slightly bloaty log file that can be robustly passed by known tools over a comma/tab delimited file every single time. Disk is cheap and working...

  • RE: formatting T-SQL

    Luis Cazares - Monday, August 6, 2018 11:25 AM

    Eric M Russell - Monday, August 6, 2018 11:01...

  • RE: A "safe" replacement for xp_CmdShell - for test purposes

    Option 2 is probably what I'd go with initially to get a feel for what is going on in the code. No need to figure out what xp_cmdshell actually does...
  • RE: Best way to SELECT with one Case Expression

    No worries. It's not impossible to make a design along those lines work, but it sounds like it hadn't been entirely thought through.

  • RE: hashbytes

    If you transform the data at the other end, a hash based solution is unlikely to help much. About the only way to make that work is have a bunch...

  • RE: SQL help with date comaprisons

    I think that'll do it:

    WITH C1 AS
    (
     --SELECT *, MAX(ISNULL(HoldEndDate, '9999-12-31')) OVER(PARTITION BY LoanNumber ORDER BY HoldStartDate, HoldEndDate, HoldSequence ROWS BETWEEN UNBOUNDED PRECEDING AND 1...
  • RE: trying to get this xml output structured right

    Oops, yeah I missed the sample at the bottom. If it absolutely has to have CDATA sections, it would appear there really isn't any alternative to EXPLICIT mode.

  • RE: Capture the required stored stored procedures to execute

    I don't believe you can pass a three part object name to sp_recompile, so you need to generate something like Use [DatabaseName];Exec sys.sp_recompile '[Schema].[Object]'

    As to FREEPROCCACHE, it feels...

  • RE: trying to get this xml output structured right

    Do yourself a favour and don't touch XML Explicit with the longest pole you can find. It descends into an unholy, unmaintainable mess in next to no time. Use Path...

  • RE: Entity Framework and SQL

    aaron.reese - Monday, August 6, 2018 6:16 AM

    As an SQL developer I used to agree, however the whole point of .NET and...

  • RE: Time Outs!!

    If you're on 2017, I'd strongly recommend turning on Query Store for your databases to help diagnose these issues. It really is an absolute godsend for finding and comparing variances...

  • RE: SQL help with date comaprisons

    komal145 - Monday, August 6, 2018 1:41 PM

    I work in In Microsoft SQL server. The above functions do not work 🙁

    Which...

Viewing 15 posts - 211 through 225 (of 325 total)