|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, February 11, 2013 8:24 AM
Points: 1,
Visits: 151
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, April 22, 2013 2:53 AM
Points: 28,
Visits: 47
|
|
Hi, thanx for the contribution, this sounds good...
There are still some problems though, try following:
create table dbo.Something( ID int identity(1,1) not null, NVarCharValue nvarchar(50) null, DateTimeValue datetime null ) go
insert into dbo.Something (NVarCharValue, DateTimeValue) values ('1', null) insert into dbo.Something (NVarCharValue, DateTimeValue) values ('2', null) insert into dbo.Something (NVarCharValue, DateTimeValue) values ('71111111111', null) insert into dbo.Something (NVarCharValue, DateTimeValue) values ('abc', null) insert into dbo.Something (NVarCharValue, DateTimeValue) values ('xxxx', getdate()) insert into dbo.Something (NVarCharValue, DateTimeValue) values ('yyy', null) insert into dbo.Something (NVarCharValue, DateTimeValue) values ('zzz', null) go
select * from dbo.Something
exec dbo.usp_TransposeNRows 'Something',10
I will try to analyse where the problem is...
Cheers, Richard.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, February 11, 2013 8:24 AM
Points: 1,
Visits: 151
|
|
Richard,
Thanks for your test case, and for offering to look into the issue. I've done a quick check - the problem appears to be with the NULL values. I'll dig further and post a fix soon.
Jeff
|
|
|
|