Viewing 14 posts - 166 through 179 (of 179 total)
I've found that account numbers (of various types, not just bank accounts) have meaningful leading zeros. So they must be stored as char/varchar.
This could lend itself to...
December 28, 2016 at 5:16 am
My "None of the above" story:
I was taking an online test. The test could be repeated 3 times until you passed. So you didn't just remember the answers...
September 29, 2016 at 5:13 am
I like Sergiy's solution too. But what happens when you need to insert a new replacement code between priority 3 and 4?
September 22, 2016 at 5:43 am
I suppose giving the full message rather than "etc" would have given it away.
September 22, 2016 at 5:26 am
Marcia Q (8/31/2010)
September 8, 2016 at 5:27 am
I suspect the invoice date is formatted as YYYYMMDD but stored as an integer. I've inherited a number of tables like that. Another important reason for giving us...
September 6, 2016 at 6:43 am
I'm sure this topic will get a lot of "It Depends ..." answers. Here's mine.
An identity as PK is easy. It will guarantee that any record inserted into...
September 6, 2016 at 6:27 am
ammit.it2006 (9/1/2016)
Also, There was a change in the requirement that I needed the values in the multiple of .25
like
.25, 0.5, .75 etc till 6.25
Thanks
That means you have 25 discrete...
September 2, 2016 at 5:09 am
Would it be possible to change the UserRank table to include a DateUpdated column? When a rank is added or changed, DateUpdated is set to GETDATE().
Then from time to...
August 29, 2016 at 5:12 am
Have you considered what you will do with zip codes that cross county lines? Does your data source (when you decide on one) split the zip code by county?
Consider...
August 19, 2016 at 5:10 am
I am reminded of the pithy saying, "Lack of planning on your part does not constitute an emergency on my part."
I am not a clock-watcher. I give myself enough...
August 12, 2016 at 6:20 am
Your example on checking the length of a column before altering it needs a "wrapper" to check that the column exists at all. If the column doesn't exist, then...
November 17, 2015 at 5:30 am
I selected "all of the above", knowing I'd probably get it wrong. Because none of them are good practice. You should always check for existence of a procedure...
November 4, 2015 at 5:16 am
My thinking time usually comes about 2:00-4:00 in the morning, when I can't sleep. Sometimes good ideas do come to me then.
October 1, 2015 at 5:10 am
Viewing 14 posts - 166 through 179 (of 179 total)