Viewing 15 posts - 286 through 300 (of 358 total)
change the varchar(MAX) then to VARCHAR(8000) this chould work, they did say there was about 1000 charachters
February 8, 2012 at 6:26 am
do you have any triggers on either of these tables?, can you replicate this in test or DEV? process of elimination i think needed here, sounds to me at the...
February 8, 2012 at 4:14 am
Cast your column as varchar(MAX) first
select REPLACE (cast(col as varchar(max)),'value','replace_value')
February 8, 2012 at 4:06 am
Can you paste in your trigger please and SQL to create the representative tables and data however as a work around to your issue, this is a bit ineficcient but...
February 8, 2012 at 3:52 am
Yer will do thanks never used CTE's as only just migrated to SQL2008r2 from 2000 🙂 the joys:w00t:
February 7, 2012 at 7:02 am
Yer you spotted my mistake, i wasnt offering code i was offering a method that i use to remove duplicates :):-D
my actual SQL i used in the past to delete...
February 7, 2012 at 6:09 am
Bring you results into a cursor and then use rowcount -1 row to delete like for example, this will then delete all your duplicate rows bar 1
declare @col1 datatype,
@col2 datatype,
@col3...
February 6, 2012 at 2:54 pm
as promised here is what i did
declare @start int,
@end int,
@st int
set @start =1
set @st=0
while @start !=0
begin
set @start=(select cast (CHARINDEX('<baseshape ',xml_data,@st) as varchar)
from #xml_table)
set @end=(select cast (CHARINDEX('</BaseShape>',xml_data,@start)-@start+12 as varchar)
from #xml_table)
insert...
January 30, 2012 at 2:32 am
Lo here is what i used, instead of counting the number of occurances to get my while loop to only run that many times it loops untill the value is...
January 30, 2012 at 2:30 am
HI, i have been working on a task that sounds similar to what you suggest, i will add my code in here on what i did when i get to...
January 29, 2012 at 12:32 pm
not entirly sure what you want your results to look like but i read that you want to re order the result set in your screenshot? or do you want...
January 29, 2012 at 12:24 pm
Thanks guys for all you help, managed to fix my script a differnet way instead of count in numbe of occurances of a specific word for my while loop...
January 29, 2012 at 12:15 pm
Confused NUll is NULL but a space ' ' is a value so not sure where your coming from there however, if you want to eliminate collums that only have...
January 27, 2012 at 8:01 am
depending where your white space is you could use replace for example if you have a string
that looks like this 111 222 333 444 and you want it to...
January 27, 2012 at 4:54 am
Viewing 15 posts - 286 through 300 (of 358 total)