Jump to content

DiGi

Members
  • Content Count

    22
  • Joined

  • Last visited

Posts posted by DiGi


  1. 11 minutes ago, Sherlock said:

    To be fair, Microsoft has declared SMBV1 deprecated as early as 2014 And recent installations of Wins 10 and 11 have SMBV1 deactivated by default. Finally killing it now altogether seems logic and overdue. And if you ask Ned Pyle (Microsofts guy in charge of this) you should have gotten rid of it years ago: https://techcommunity.microsoft.com/t5/storage-at-microsoft/stop-using-smb1/ba-p/425858

    https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/smbv1-not-installed-by-default-in-windows

    Well, blocking old SAMBA... I have some old NAS/Media center at home. And of course there are no new updates for ages. And I really don't waste money on new one because someone decides that it is not secure enough anymore and I cannot access it over LAN.

    • Like 1

  2. Which SQL Engine?


    One table scan for whatever you want.
     

    -- Assuming that Field type is TINYINT NOT NULL 1/0
    SELECT
      SUM(T.Field1) AS SumField1,
      SUM(T.Field2) AS SumField2,
      ..
    FROM
      Table1 AS T;
    
    
    -- If you want special values. Or you can use IIF()
    SELECT
      SUM(CASE WHEN T.Field1 = 'SomeTextValue' THEN 1 ELSE 0 END)) AS SumField1,
      SUM(CASE WHEN T.FieldMixed = 7 THEN 1 ELSE 0 END)) AS SumMixed7,
      SUM(CASE WHEN T.FieldMixed = 31 THEN 1 ELSE 0 END)) AS SumMixed31
      ..
    FROM
      Table1 AS T;

    Optionally if you prefer rows instead of columns you can use UNPIVOT + SUM + GROUP BY (for MSSQL, I don't know with other SQL engines that much but probably there is similar feature too)

    • Like 1

  3. Many tools are just too basic. Only TortoiseGit provides almost all options in useful ways. Only issue is that it take time to configure it in way that you want and learn ways to do things. Like that you can create/switch branches from Log view etc.

     

    It last year there was really huge improvements in Git for Windows and TortoiseGit.

    • Like 3
×