Viewing 15 posts - 51,031 through 51,045 (of 59,098 total)
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
Nope... ISNUMERIC treats $ signs, decimal points, and a whole bunch of other non-digit characters as if they were numeric. Never use ISNUMERIC to try to create an IsAllDigits...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:40 pm
Wow... I wonder what the real intent of the code is...
The following part of the code is poorly written...
[font="Courier New"]IF @Center = '' OR @Center IS NULL
...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 4:36 pm
James_DBA (4/20/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 12:34 pm
David.Poole (4/20/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2008 at 12:32 pm
Viewing 15 posts - 51,031 through 51,045 (of 59,098 total)