Forum Replies Created

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

  • Reply To: Primary Key and Clustered Index

    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...

  • Reply To: Performance Debate

    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...

  • Reply To: SQL Collation different in tables and columns

    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...

  • Reply To: Stored procedure getting results from views that are joining several tables

    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...

  • Reply To: What is wrong with my code?

    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...

  • Reply To: The AI Manager

    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...

  • Reply To: The AI Manager

    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...

  • Reply To: add prefix to numeric values

    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...
  • Reply To: The Worst Comments

    My two favourites were both from COBOL programs many years ago.

    1. At the very top of the program, "This program operates on a finite state machine concept". That was the...
  • Reply To: Debugging SQL Server

    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....

  • Reply To: Unique Permissions for User

    If GP does all its writes via stored procedures, you can deny write to his login and grant execute to the stored procedures.

  • Reply To: The Death of the GDPR

    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...

  • Reply To: Boolean expression not working

    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.

  • RE: How Long is Too Long?

    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...

  • RE: Parameter Fun

    Steve Jones - SSC Editor - Monday, March 4, 2019 10:24 AM

    man command is something I used to use often. I just...

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