Viewing 15 posts - 31 through 45 (of 106 total)
It's always an implicit conversion issue when people supply questions that show bad programming habits.
People use this site to LEARN about SQL. Whilst the dates given in this example are...
February 22, 2005 at 3:04 am
Yet another example of bad code relying on implicit conversions. Why is the Convert function not being used?
February 21, 2005 at 4:28 am
I feel that the question is a little unfair then!
February 11, 2005 at 3:53 am
I don't get it! None of the suggested answers create an error, they all work perfectly well. They don't all return results but they don't error either.
February 11, 2005 at 2:45 am
Not a good idea. As I have said before, this used to be my recommendation as it sems unambiguous. However, we then opened an office in Switzerland where they were using...
December 3, 2004 at 5:10 am
Blimey! I never thought of that
Hope I never have to write systems that use a mix of Gregorian and Hijri then
December 2, 2004 at 10:00 am
I agree with all of the comments above. NEVER NEVER NEVER code dates in this way!
I have said before that the only way dates...
December 2, 2004 at 8:09 am
Sorry, I just figured it out. It's because the quoted identifiers also fail at parse time.
November 23, 2004 at 4:24 am
This is a useful QOD because it can help explain unexpected behaviour. Well done to whoever set it
However, I have another question though....
November 23, 2004 at 3:53 am
I can't see why the straight update fails. I have had no problem inserting or updating data way beyond 4000 characters without problems.
Try this:
CREATE TABLE [TextTest] (
[TheKey] [int] IDENTITY (1,...
November 17, 2004 at 4:04 am
A simple question made difficult by its confusing wording. Probably deliberate.
Does 'criteria' refer to the column name called 'Criteria' (which would give an error...
November 15, 2004 at 3:48 am
???
The day of the week doesn't change - regardless of the setting of DATEFIRST. Are you implying that 8th Nov 2004 could ever be anything other than a Monday?
November 8, 2004 at 8:48 am
Another good reason to use DATENAME then
November 8, 2004 at 4:46 am
If you're going to start changing the code then why not use the DATENAME function? (and fix those dodgy dates whilst you're at it!)
Declare @Year_Begin_DT as datetime, @Year_End_DT as datetime
Declare...
November 8, 2004 at 3:18 am
Anyone who writes code like this should be taken out and shot!
Once again, assumptions have been made that the code is being run in...
November 4, 2004 at 9:09 am
Viewing 15 posts - 31 through 45 (of 106 total)