Link to home
Start Free TrialLog in
Avatar of Tech315
Tech315

asked on

TSQL HELP

Ladies, Gentleman, need some help with the following code below

declare   @li_severity int, @lvc_errmsg varchar(255)

BEGIN TRANSACTION

update  ta_complaint_narrative
set incident_narration = ''
where complaint_id in 
( select complaint_id
  from ta_complaint
  where stage_id <> 0 
    and activity_id <> 0
)
if @@error <> 0 
begin 
    select @li_severity = 16,  
    @lvc_errmsg =  'Cannot set set incident_narration = '' '
     goto error 
end 
COMMIT
if @@error <> 0 
begin 
   select @li_severity = 16, 
          @lvc_errmsg =  'Cannot commit changes in ta_complaint_narrative'
   goto error 
end    

return 

/*  Errors handling  */ 
error: 
  rollback 
  raiserror (@lvc_errmsg, @li_severity, 1) 
GO

Open in new window


this part of the code set incident_narration = ''
was changed to set it to be empty. but I would like it not to be empty and stumped on what I need to put in there. I was thinking * but i dont think that it is it.

Any ideas?

Thanks

T
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
':('
'grrrr'
'-'
'not provided'
'unavailable'
'empty'
'void'

http://thesaurus.com/browse/empty
bare
barren
blank
deserted
desolate
devoid
dry
hollow
unfilled
uninhabited
unoccupied
vacant
abandoned
clear
dead
deflated
depleted
desert
despoiled
evacuated
exhausted
forsaken
lacking
vacated
void
wanting
waste
destitute
godforsaken
unfurnished
vacuous

'you tell us' and '42' I quite like too; 'none' has a nice ironic ring to it

sorry, about the flippancy, but you did ask for any ideas
Avatar of Tech315
Tech315

ASKER

Ok, sorry for the ambiguity of my question. The code above is deleting one of the columns, the narrative column, and was looking for that not to happen .
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tech315

ASKER

Experts thanks for the taking the time out to address my question, sorry was out sick with shingles, and one of the guys from work removed the code. So I'm splitting the points for effort.