Forum Replies Created

Viewing 15 posts - 106 through 120 (of 182 total)

  • RE: The Number that shouldn't be a number

    even in this case (breaking down to daily or even hourly costs) you can not invoice more than rounded cents. So more precisition will only prevent rounding errors, if you...

  • RE: The Number that shouldn't be a number

    Worst data types: I've seen money values, that are usually < 100 EUR be stored in DECIMAL(38,17) columns (and many percentage columns with the same declaration too).

  • RE: CASTING Binary to BIGINT

    Rune Bivrin - Tuesday, September 25, 2018 1:54 AM

    I didn't realize it was October 12 already 🙂

    well, time passes faster, the older...

  • RE: Indexing a Computed Column

    You should / could have mentioned that an index persists the column (but only in the index itself) too.

    Persisting on the table level safes you a little...

  • RE: Count the Number of Weekend Days between Two Dates

    I did not make many tests for edge cases and wrote this only a short proof of concept, but this piece of code would return the same and would be...

  • RE: The Best Days

    Since we have to do diffent tasks (or little steps toward this tasks) every day, a good day would be the wrong measurement. When I have a big tasks that...

  • RE: Replace-Function

    RonKyle - Wednesday, August 15, 2018 7:29 AM

    We use the nested replaces to remove non-printable characters that sometimes get into the source...

  • RE: Replace-Function

    Here a version, which uses selfreferencing CTEs:

    CREATE TABLE dbo.synonym (synonym VARCHAR(50) NULL, word VARCHAR(50) NULL, sort_order INT PRIMARY KEY);
    INSERT INTO dbo.synonym (synonym, word, sort_order)
    VALUES...

  • RE: Replace-Function

    In my opinion this is a very bad script.
    - Scalar functions (as those) are very slow
    - creating a table variable (since you can't use #temp-tables inside a function)...

  • RE: Verifying the restore

    The whole, valid command would be (plus maybe some with-options)
    RESTORE VERIFYONLY FROM DISK='\\SERVER1\Backup\my_big_db\FULL\SERVER1_my_big_db_FULL_20180803_210600.bak'

    Sorry, but checking the disk space does not make any sense, since I do...

  • RE: All the memory

    Question: why does Windows want / need more free space for itself on systems with more RAM than on systems with lesser?

    The "core" of Windows should need...

  • RE: State v Migrations

    I see, what you mean - when developer A works on a procedure for 4 days and developer B makes a small change (e.g. a new column or fixing a...

  • RE: State v Migrations

    An important point, when working with own migration scripts, is defensive scripting. Do not just create a table, but check, if the table already exists before. The same with columns...

  • RE: Better Comments

    I used to comment every line of code, when I wrote scripts for the game Heroes of Migth and Magic 3 (WoG), but mostly, because it had a very "uncommon"...

  • RE: UNION and Duplicate values

    it depends :-), but both queries could return different results when are used with real tables.

    Your  first query (with UNION ALL) could return duplicates, when you have the...

Viewing 15 posts - 106 through 120 (of 182 total)