Viewing 9 posts - 1 through 9 (of 9 total)
It took some effort and with some help from colleague I came to this fix:
BEGIN TRAN
UPDATE TABLENAME
SET lineno=
(case when len(lineno -12) = 1 then ' '+cast((cast(lineno as int)...
October 2, 2014 at 7:33 am
Thanks, but unfortunately that does change the output. 'Funny' thing is that when I run the query
update tablename set lineno=lineno- 12, sysmodified=getdate()
where 1=1
and entry=545554
and type='X'
and lineno=568...
October 2, 2014 at 6:25 am
Hi Phil,
Thanks for your reply. The datatype of the field lineno is char(4), null
KR
October 2, 2014 at 5:55 am
Thank you both very much. Since this issue occurs after migrating from sql 2000 to sql 2008 I suspect the performance issues which were adressed by Microsoft in SQL 2008...
July 31, 2013 at 5:41 am
Both (the orignal query and the new proposed query) gave 57 rows.
July 31, 2013 at 5:23 am
Sorry, bout that. I checked it now against the actual data. The orignal query only gave back valid data (only numbers). The new proposed query gave the same by first...
July 31, 2013 at 5:21 am
Hi,
I followed your instructions. The results are:
Original subquery gives: 69000
Proposed query containing cross apply: 69000,Int.nr.TXT: 69000
So the original query works fine as long at is not part as a...
July 31, 2013 at 5:11 am
Hi, Thank you for your response. However the goal is to only retrieve those lines starting with Int.nr.TXT:. I checked the data, all lines have a valid integer after...
July 31, 2013 at 2:18 am
Viewing 9 posts - 1 through 9 (of 9 total)