Viewing 15 posts - 106 through 120 (of 275 total)
Jeff's response about account numbers is the same as my reason for almost always using an IDENTITY as the primary (and clustered) key. As long as it's the IDENTITY column...
August 23, 2019 at 1:02 pm
The UI is probably using bound controls (eg. a datagrid) to update a DataTable. It sounds as if it is then clearing the table and posting each remaining row to...
August 16, 2019 at 1:59 pm
If your database originally resided on a different server (with a different collation), columns created would have used that default. Columns created after the migration would default to the collation...
August 16, 2019 at 1:48 pm
If the stored procedure is returning the same results each time, it might be worth amending it to store those results in a table that can be referred to whenever...
August 6, 2019 at 1:25 pm
Please also pick up on Phil's suggestion regarding the naming of defaults. This will save you so much pain when you put your code into source control and also when...
July 30, 2019 at 12:38 pm
Re: On the other hand, as the father of a son on the autism spectrum, I'm very concerned for those with lower capabilities. How will they work for themselves (assuming they're...
July 19, 2019 at 1:34 pm
You mention the impact on middle management and supervisors; I can imagine AI being able to schedule pointless meetings, but it will be some time before it can realistically take...
July 18, 2019 at 1:38 pm
If you want to be stricter on what should be interpreted as numeric (and are using 2012 or later), you could change the WHERE clause to
where try_cast(TPN...
July 3, 2019 at 12:33 pm
My two favourites were both from COBOL programs many years ago.
June 5, 2019 at 1:47 pm
I mostly use PRINT and temp tables. One other thing I do in all multi-step stored procedures is to declare a variable called @ErrorLocation that is incremented before each step....
May 28, 2019 at 12:36 pm
If GP does all its writes via stored procedures, you can deny write to his login and grant execute to the stored procedures.
May 22, 2019 at 1:05 pm
The thing that disheartened me the most about the Sarbanes-Oxley act was that the very same companies that caused the crisis (eg. Enron's auditors) were able to make vast sums...
May 14, 2019 at 11:36 am
One advantage of casting 1 and 0 to bit is that some UIs will default to displaying these as True/False or ticked/unticked without any special coding.
April 24, 2019 at 1:43 pm
There's a good reason most TV programmes are around the 50-55 minute mark (even on the BBC which doesn't stop for adverts every few minutes) - that's probably the length...
March 15, 2019 at 9:13 am
March 5, 2019 at 6:18 am
Viewing 15 posts - 106 through 120 (of 275 total)