Viewing 15 posts - 51,001 through 51,015 (of 59,078 total)
Calculated column would take care of it nicely...
April 21, 2008 at 6:06 pm
Heh... I understand that COALESCE is more portable than ISNULL... that's one of the fortunate functions... I just wanted to make sure that someone didn't actually believe they could write...
April 21, 2008 at 5:53 pm
What's in the TEXT column?
April 21, 2008 at 5:49 am
Heh... no... I always try to use the method with the best performance instead of documenting why performance can suffer... it's part of my 3 rules of a DBA.
April 21, 2008 at 5:43 am
Andrew Shaw (4/21/2008)
I need this value writing up...
April 21, 2008 at 5:39 am
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...
April 21, 2008 at 5:36 am
Chris used the method I would have. Ryan's is also a viable solution.
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?
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...
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...
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
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.
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...
April 20, 2008 at 9:25 pm
mail2dinesh.sharma (4/20/2008)
April 20, 2008 at 9:16 pm
Viewing 15 posts - 51,001 through 51,015 (of 59,078 total)