SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
Mar 6, 2018 18:49
Or is it only possibly with task scheduler with the express edition?
Mar 6, 2018 18:48
How would you go about automatically handling index rebuilding / reorginazing on sql server express?
Feb 21, 2018 10:14
Anyone got tips on troubleshooting performance on SQL server, like bottlenecks?
 

C#

General discussions about the c# language, Squirrels | gist.gi...
Feb 27, 2018 15:00
Been debugging why mail where not sent to mailtrap.io for some time, turns out the isp blocks outgoing port 25 to other mail servers other than the proxy provided.
Feb 23, 2018 08:43
Im using: Microsoft.VisualStudio.TestTools.UnitTesting,
Is it possible to run an method like TestInitalize for each test method instead of class?
Jan 17, 2018 17:19
@Kieran i have 554 .cs files in my project :), don't know how you would manage files without extensions
Jan 17, 2018 17:14
I haven't written a using directive
Jan 17, 2018 14:05
I will use the new entities that are similar and rewrite all the data access, will probably be simpler code in the end.
Jan 17, 2018 13:58
Yes, an VS shared project, Well multiple shared projects

Main application -> Common code -> 3rd party data
Other Application
Another Application
Jan 17, 2018 13:49
Or should i consider the new project an core part of the whole application?
Jan 17, 2018 13:49
I have created a shared project which contains all code that interacts with an 3:rd party database, also entities / tuples that replaces code all over the place.

Should i use the entities that are from that project or should i convert them to the alike that where there before to avoid hard dependencies?
Jan 12, 2018 15:24
@Wietlol Yes
Jan 12, 2018 15:23
@Wietlol Correct, and slow. takes 1.5s to read an tuple from an set of 500k, with ado.net ~5ms
Jan 12, 2018 15:21
https://en.wikipedia.org/wiki/Julian_day
If i use the offical API it will return an integer for the date, then you manually calculate it and convert it to an System.DateTime object
Jan 12, 2018 15:17
@Wietlol Ye, does not make it any better that the official API for integration with the software that uses MS SQL uses same method to fetch dates and datetime, but when there is an date to be fetched, it converts it to Julian date and epcoh time for datetime.
Jan 12, 2018 15:11
Hello,
If i have an Date (not date time) stored in the database in UTC, when i read the value it set the timezone to my local: +1 in the Datetime object. Is to correct that all dates then is yyyy-mm-dd 01:00:00 ?
Nov 29, 2017 15:14
I will go with prefixes, thanks for the help.
Nov 29, 2017 15:04
The local project also stores the "article" in its database but all fields are not 1:1
Nov 29, 2017 15:03
Current working with an ERP system with integration with multiple projects, the naming for an article is Article in the project and also the same in the ERP system
Nov 29, 2017 15:01
Yes it works but i'm considering in the sense of readability
Nov 29, 2017 14:57
Should i prefix all entities in an shared project to avoid ambiguous naming?
Nov 29, 2017 10:22
Good only 60% of tests failed :)
Nov 29, 2017 08:40
How would i go on about unit testing an desktop application with settings?
I have currently implemented an abstract class with virtual's for some data access settings
Nov 27, 2017 11:38
ISO 8601 Data elements and interchange formats – Information interchange – Representation of dates and times is an international standard covering the exchange of date and time-related data. It was issued by the International Organization for Standardization (ISO) and was first published in 1988. The purpose of this standard is to provide an unambiguous and well-defined method of representing dates and times, so as to avoid misinterpretation of numeric representations of dates and times, particularly when data are transferred between countries with different conventions for writing numeric dates...
Nov 27, 2017 11:37
ISO 8601 is the good stuff
Nov 14, 2017 15:37
Best part is is when you have an combobox populated in the database query result loop
Nov 14, 2017 15:33
@HéctorÁlvarez Haha, luckily i'm not the one who wrote it.
Nov 14, 2017 15:30
@HéctorÁlvarez Yes, WinForms :)
Nov 14, 2017 15:29
Why doesn't visual studio like files with ~12k lines?
Aug 18, 2017 07:54
Uncovered/Total Stmts: 40142/40340 :)
Aug 18, 2017 07:47
When exceptions is expected: Tests
Aug 8, 2017 10:08
@WilliamMariager Found that out the hard way with disposable objects with async calls :)
Aug 8, 2017 06:32
@mr5 Probably, 5GB of files :) maybe only copy the modified files and the non-existent to avoid unnecessary disk wear
Aug 8, 2017 06:18
@Saravanakumar Check your project references?
Aug 8, 2017 06:17
@mr5 Oh, i mean to keep the state of the database same as before the test, the api provided cant fully "undo" every thing you do against it...
Aug 8, 2017 06:08
I'm thinking of writing tests for an local software that integrate to an system using flat-file databases.

Is there any neat way of doing this, thinking of just make an reference version that i copy every time on each test
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Nov 24, 2017 15:21
wet teabags?
Nov 23, 2017 17:06
Haha, ye I should probably fix it
Nov 23, 2017 17:04
It's only 1500 loc
Nov 23, 2017 17:02
Would any one be kind to write an test to an function with cyclomatic complexity of 288?
Nov 20, 2017 17:49
How cpu intensive is phpmd?
Nov 14, 2017 17:08
@parvin Asp.NET, php or js with Node.js
Nov 14, 2017 17:03
Made with php?
Nov 14, 2017 16:54
@Jeeves Isn't all Mondays :P
Nov 14, 2017 16:24
@AbhiBurk Well it is not an package in the sense of laravel, so you could just edit the model and migration?
Nov 7, 2017 19:23
Its not that kind to the SQL server, peaks at 102k batch requests / second when running ~10 processes running an fetching task against the API for about 40 seconds
Nov 7, 2017 19:18
@Allenph Yes, direct in SSMS 7ms, the API is shit
Nov 7, 2017 19:13
Should it take 1273ms to update an binary field on a record using indexes?
May 4, 2017 08:11
@tereško SHIFT + F6
May 4, 2017 07:48
@PeeHaa Cool blog