Viewing 15 posts - 51,031 through 51,045 (of 59,102 total)
ALZDBA (4/21/2008)
Jeff Moden (4/20/2008)
Here's why I say NOT to use ISNUMERIC as an "IsAllDigits" function...
Indeed, I forgot about the currency signs. :crying:
Thank you for providing the faulty example.
They'd better remove...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 21, 2008 at 5:36 am
Chris used the method I would have. Ryan's is also a viable solution.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 21, 2008 at 5:30 am
Sorry guys, I lost track of this one... what ended up winning the race on the 4 million row test? RegEx or one of the functions?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 10:33 pm
Kaushik Kumar (4/20/2008)
Nevermind, figured out the comma part.
Two way street here, Kaushik... how about telling us how you did that...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:49 pm
Then, try this on a couple of the VARCHAR(255) columns...
SELECT *
FROM T12
WHERE DATALENGTH(columnname)-LEN(columnname) <> 0
If you get any returns, it may be because data...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:47 pm
Try this first... check Books Online for how to read the output...
DBCC SHOWCONTIG (T12) WITH TABLERESULTS, ALL_INDEXES
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:40 pm
Are the columns defined as CHAR() instead of VARCHAR()? Depending on system settings, that could be the problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:27 pm
This is how you could do it in a view... but a view is not needed. This also works directly in code. It works because there is only...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:25 pm
mail2dinesh.sharma (4/20/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:16 pm
Here's why I say NOT to use ISNUMERIC as an "IsAllDigits" function...
[font="Courier New"] SELECT ISNUMERIC('143563d21'),
ISNUMERIC('143563e35')
----------- -----------
1 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 9:15 pm
colin Robinson (4/20/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:55 pm
It would appear that the value for the "val" column is incorrect thoughout the table. It should not have trailing spaces. I'd recommend finding the root cause for...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:51 pm
SELECTs aren't allowed in calculated columns. Nothing you can do about it. Use a view, instead. Be careful when you write the view... improperly written views can...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:47 pm
john.arnott (4/18/2008)
It allows for a list of arguments, the first of which evaluates to not null being returned.
Coalesce is ANSI standard; ...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:45 pm
Dinesh,
How about providing some additional samples where the TradeReference column contains the Alpha characters you're talking about?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:42 pm
Viewing 15 posts - 51,031 through 51,045 (of 59,102 total)