You're welcome.
>Thank you! Now it works all fine
>
>>Jörg,
>>
>>The SQLEXEC() doesn't like '?' (question mark) because it's used as SPT parameter marker. I don't know how you could pass '?' if you have to but in this case you can just remove it.
>>BTW, you can use < pre > and < /pre > tags (w/o spaces) to preserve code formatting.
>>
>>>here the code that I cannoct send with pass through:
>>
>>...
>>>
>>> /* Kein Eintrag in Nummernkreis?*/
>>> if not(@tcNextLfdNr > space(10) or @tcNextLfdNr > '')
>>
>
>>>The error I get is: sql parameter is missing.
>>>With cut and paste in Entprise Manager od Query Analyser it works fine.
--sb--