Viewing 15 posts - 121 through 135 (of 198 total)
I think a problem with synonymes (as with several other "solutions") is SourceControl. When I use them to refer to database db_prod or db_test (depending on my environement) it will...
God is real, unless declared integer.
January 10, 2019 at 12:55 am
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...
God is real, unless declared integer.
December 15, 2018 at 9:25 am
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).
God is real, unless declared integer.
December 13, 2018 at 8:46 am
Rune Bivrin - Tuesday, September 25, 2018 1:54 AMI didn't realize it was October 12 already 🙂
well, time passes faster, the older...
God is real, unless declared integer.
September 25, 2018 at 2:17 am
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...
God is real, unless declared integer.
August 23, 2018 at 12:54 am
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...
God is real, unless declared integer.
August 23, 2018 at 12:41 am
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...
God is real, unless declared integer.
August 17, 2018 at 9:02 am
God is real, unless declared integer.
August 16, 2018 at 9:05 am
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...
God is real, unless declared integer.
August 15, 2018 at 2:45 am
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)...
God is real, unless declared integer.
August 14, 2018 at 4:24 am
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...
God is real, unless declared integer.
August 6, 2018 at 5:43 am
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...
God is real, unless declared integer.
June 26, 2018 at 2:09 am
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...
God is real, unless declared integer.
June 19, 2018 at 2:48 am
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...
God is real, unless declared integer.
June 19, 2018 at 12:46 am
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"...
God is real, unless declared integer.
June 13, 2018 at 6:46 am
Viewing 15 posts - 121 through 135 (of 198 total)