I realise my query may be complicated but I want to just show the full query. This is copied from a query where I am just testing it.
The issue I have is that the field derwent_abstract can have up to maybe 500 to 700 characters. But the result of the below SQL always cuts the size to something a lot smaller - (my test show around 250)
Why is this?
The issue I have is that the field derwent_abstract can have up to maybe 500 to 700 characters. But the result of the below SQL always cuts the size to something a lot smaller - (my test show around 250)
Why is this?
Code:
SELECT * INTO tbl_questionnaire
FROM [SELECT IIf(IsNull(connect.srf_akz), em.akz, connect.srf_akz) as patent_akz, em.status, em.decision_number, em.decision_date, em.work_around_ability, em.attractive, em.used_by_third_party, em.total_eval, em.can_use, em.eval_reason, em.use_inhouse, em.product, em.decider, em.bkz_id, em.bkz_questionaire, em.hierarchie_level_2, em.hierarchie_level_3, em.hierarchie_level_4, em.hierarchie_level_5, em.piv, em.piv_name, null as pik_coordinator, null as pik_name, null as fal_pik, null as fal_name, null as l_akz, null as derwent_title, [COLOR=Red]null as derwent_abstract[/COLOR], null as date_of_lapse, null as countries, null as only_siemens_in_charge, em.type, em.em_akten_id, connect.srf_akten_id
FROM (em
LEFT JOIN connect
ON em.em_akten_id = connect.em_akten_id)
UNION select srf.akz as patent_akz, srf.status, srf.decision_number, srf.decision_date, srf.work_around_ability, srf.attractive, srf.used_by_third_party, srf.total_eval, srf.can_use, srf.eval_reason, srf.use_inhouse, srf.product, srf.decider, srf.bkz_id, srf.bkz_questionaire, srf.hierarchie_level_2, srf.hierarchie_level_3, srf.hierarchie_level_4, srf.hierarchie_level_5, srf.piv, srf.piv_name, srf.pik_coordinator, srf.pik_name, srf.fal_pik, srf.fal_name, srf.l_akz, srf.derwent_title, [COLOR=Red]srf.derwent_abstract[/COLOR], srf.date_of_lapse, srf.countries, srf.only_siemens_in_charge, srf.type, null, srf.srf_akten_id
FROM srf]. AS [%$##@_Alias];