Viewing 15 posts - 16 through 30 (of 682 total)
Gosh. This is a long time ago.
I'd forgotten all about this until I got an email from smorgan just now. And I can barely remember anything about it, so my...
October 7, 2008 at 12:42 pm
GSquared (10/2/2008)
If (select isnull(column, '') from table) != ''
print 'Not Null or Empty'
Else
print 'Null or Empty'
I'm using Empty for just a space.
What if the table has...
October 2, 2008 at 11:33 am
Something along these lines?
declare @t table (v varchar(50))
insert @t
select '10.1.1.%'
union all select '10.%'
union all select '10.1.%'
union all select '99.%'
union all...
October 2, 2008 at 11:17 am
I'm not clear on the goal. Could you write it out for your sample data so we have a clear example?
October 2, 2008 at 11:10 am
if exists (select * from table where nullif(column, ' ') is null)
print 'column contains either a null or a space'
else
print 'column contains...
October 2, 2008 at 10:51 am
Here are a few possibilities...
declare @t table (id int, v varchar(50))
insert @t
select 1, '654:JT12;678:JT56;'
union all select 2, '6549:JT129;6789:JT569;453:JT435;'
select *,
...
October 2, 2008 at 10:47 am
select * from Table where not (FirstName = 'Jimmy' and LastName = 'Woods')
October 2, 2008 at 8:43 am
Replace all instances of < with < to post your XML...
August 22, 2008 at 8:38 am
Try replacing every < with < before posting...
August 22, 2008 at 8:07 am
Here's my effort. I was assuming there could be multiple messages in #t1, which makes it a bit trickier. I'm not proud of it, but anyway...
--Sample Data
--drop table #t1
create table...
August 22, 2008 at 5:55 am
No worries - glad to help 🙂
August 22, 2008 at 4:30 am
richard (8/22/2008)
That returns all alphanumeric values but I want the opposite.
Huh? Did you see the not symbol (^)? Here's an example...
--Sample Data
declare @t table (v varchar(100))
insert @t
...
August 22, 2008 at 4:25 am
My understanding is slightly different. Here's what I came up with...
set dateformat dmy
--Sample Data
declare @t1 table (EMPID int, WEFDATE datetime, DEPTID int)
insert @t1
...
August 22, 2008 at 4:22 am
Here's an example of the cube root of 27...
select POWER(1.0 * 27, 1.0 / 3)
August 22, 2008 at 4:10 am
Will this work?
select * from YourTable where YourColumn like '%[^a-zA-Z0-9]%'
August 22, 2008 at 4:04 am
Viewing 15 posts - 16 through 30 (of 682 total)