Forum Replies Created

Viewing 15 posts - 121 through 135 (of 182 total)

  • RE: Filtering a CAST

    Nice question, but when you use country specific date / time conversion, you should always add a SET language = 'englisch' to the query.

    On my German SQL Server...

  • RE: Performance of GROUP BY multiple columns

    You are right about the missing OVER() in the third query - sorry, my fault,

    On the other side the execution plans for query one and two are not...

  • RE: Default CONTEXT_INFO()

    This is a little inconsistency, since you can't set CONTEXT_INFO to NULL.
    DECLARE @ci VARBINARY(128) = CONTEXT_INFO();
    --<do some stuff as temporary setting CONTEXT_INFO to something else>
    SET...

  • RE: Decouple the Tools

    I'd guess that there are a lot of small and big shops out there, which uses bcp and sqlcmd regulary (e.g. bcp for simple import / export tasks where SSIS...

  • RE: JSON performance

    Another problem: JSON could be stored in a (N)VARCHAR(MAX) field which could not be added to an index (only included, but this would only allow full index scans, even if...

  • RE: Adaptive Query Processing – Batch Mode Memory Grant Feedback

    What happens, if you call the procedure again with an ID which has only one entry (so that the granted memory is now much to high)? Will it lower the...

  • RE: Store JSON data in SQL Server 2016

    I'm confused - the MS page you linked in your answer says in its head:
    THIS TOPIC APPLIES TO: yesSQL Server (starting with 2016)

    So...

  • RE: Are You Patched?

    Heterogenity may sound nice, but if I have x different systems, it multiplies the number of vulnerabilities too. And of course I would need staff, which knows this systems very...

  • RE: CREATE RULE

    Why is usefull stuff as this deprecated? Everyone is talking about normalisation, but I still have to write the same code in a CHECK CONSTRAINT again and again and again,...

  • RE: Temporary tables and procedures

    Yes, a procedure RUNs and COMPILES with a separat scope / copy of the #temp table. But (as written) there seems to be a bug in the parser / syntax...

  • RE: SOS

    As long as 3rd party tools as SQL Prompt or SSMS Boost does not support SOS, it is unlikely, that I would use it regularly, except it implements all the...

  • RE: SQL Session Context

    Our database uses triggers on many databases. Some time ago, when the developers had to run a special INSERT/UPDATE/DELETE, which should not trigger the trigger :-), the always disabled the...

  • RE: Parse Data from a Field Containing Multiple Values using CROSS APPLY

    Nice article, but instead of using a slow multiline table value function, you should better use the well tested and fast inline table value function DelimitedSplit8K (except your...

  • RE: Adding the average

    Short question: I admit, that I do not work with R, but why should anyone else really wants to do this "graphical" plotting in R, while there are much more...

  • RE: Calculating the Tally

    How did you get your result?
    I used the following query and get other numbers:
    WITH myBeers (<see CTE in the question> )
    SELECT ISNULL(bt.OwedTo, bb.OwedBy) who, SUM(bt.Beer)...

Viewing 15 posts - 121 through 135 (of 182 total)