Viewing 15 posts - 451 through 465 (of 683 total)
Those examples will remove all spaces (obviously) - which might well be what you want (it's not clear to me).
The example below will remove duplicate spaces - just in case that was...
May 16, 2006 at 11:22 am
Note that if it genuinely is a column of type 'text' (as opposed to varchar), the left function will error. In that case, you can use cast instead.
May 16, 2006 at 11:05 am
Hi Ramesh,
No worries.
'¬' is just a somewhat unusual keyboard character (it's on the key under 'Esc' on my keyboard). You can run this to select it...
select char(172)
I should've...
May 15, 2006 at 11:24 am
That's good to know, David. Thanks for the info.
May 15, 2006 at 10:37 am
See:
http://weblogs.sqlteam.com/mladenp/archive/2005/08/01/7421.aspx (no 5)
or
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx
For your example...
--data
declare @ColorChart table (Colors varchar(10))
insert @ColorChart
select 'red'
union all select 'green'
union all select 'blue'
union all select 'purple'
union all select 'green'
May 15, 2006 at 10:33 am
Hi all,
FYI - The 'IsReallyNumeric' function in this link does what the (useless) 'IsNumeric' function should!
May 15, 2006 at 10:02 am
Hi all,
Yet another way!
It deals with all the different types of test data I can think of...
--data
declare @t table...
May 15, 2006 at 9:51 am
Thanks lakusha. I'll have to wait till we get SQL 2005 to be able to work through this, but it makes interesting reading in the meantime!
May 15, 2006 at 6:10 am
Of course I'm interested!
Not that I have access to sql 2005 yet, but still, I am interested
Did the example I gave illustrate your...
May 11, 2006 at 12:47 pm
I don't know how you guys can work through these things without examples. I find it impossible .
RGR - I don't get what you're...
May 11, 2006 at 11:51 am
I can't think why you think it looks like a big mess!
For a start there's nothing in the proc which tells anyone...
May 11, 2006 at 11:08 am
end-user - did you have an answer to Vladan's question? You need to decide which 1 of those 3 rows you want.
If you can tell us, then it's easy for...
May 11, 2006 at 9:29 am
+1 for John's suggestion.
Note that the clustered index isn't a guarantee that the data will be sorted, so you should still use an 'order by'. It should be much quicker...
May 10, 2006 at 9:53 am
Viewing 15 posts - 451 through 465 (of 683 total)