Viewing 15 posts - 106 through 120 (of 299 total)
My boss has been very proactive in this area - we already had a weekly "Tea and biscuits" meeting, but he's moved that to Teams and we join in from...
June 11, 2020 at 3:13 pm
I'd suggest that you look at some of the Stairway articles on this site. All the ones I've read have been extremely well-written. You can pick topics that cover areas...
May 12, 2020 at 3:20 pm
As the database is using a case-sensitive collation, I don't see why the 2nd option wouldn't work.
April 24, 2020 at 8:41 am
To find out which values are causing the problem, you could use TRY_CAST(YourColumn AS DATE). The values that can't be cast will be null in the new table. Then you...
April 8, 2020 at 10:47 am
And how long did it take them to give us a better message than "string or binary truncation"?
March 9, 2020 at 5:45 pm
Now I really want a picture of Steve in a Smurf shirt!
February 21, 2020 at 2:23 pm
Good article. The only thing I'd question is having the revision history in the header; over time this can become very verbose and bloat the script considerably. All that information...
February 11, 2020 at 1:26 pm
Out of interest - by 'later', are you saying that the CAST/ TRY_CAST is being executed in the SELECT before the WHERE?
That's my guess based on the fact that...
February 10, 2020 at 4:01 pm
I had a problem a few days ago where using TRY_CAST gave no nulls in the result, but using just CAST caused an error. It turned out that either my...
February 10, 2020 at 2:14 pm
I was expecting the LEAD solution to need the UNBOUNDED FOLLOWING frame, so I discounted that one.
February 10, 2020 at 2:00 pm
I have confirmed that the error was caused by a value that was being filtered out later by the joins or the where clause. That's why I never saw nulls...
January 23, 2020 at 9:31 am
I tried to script out the values (see below). Selecting from the resulting temporary table works whether I use CAST or TRY_CAST, ie. the value has somehow been fixed by...
January 22, 2020 at 5:03 pm
Phil,
I'll try to reproduce with sample data tomorrow (and post it if I succeed).
Thom,
didn't your large value came through as null when using TRY_CAST? It did when I tried in...
January 22, 2020 at 4:53 pm
Unfortunately, when I scripted out the inserts, the select worked on the result, ie. just rendering the result into a grid was sufficient to "fix" the underlying error.
January 22, 2020 at 4:32 pm
Thanks. The highest value I get for LocationOfDP is 7. If there were too many decimal places, I'd have expected the ROUND to fix it.
January 22, 2020 at 4:04 pm
Viewing 15 posts - 106 through 120 (of 299 total)