DTS Query Designer Error

  • Hello everyone,

    I wrote a query in DTS Query Designer and I'm receiving the following error:

    The Query Designer does not support

    the SET STATEMENT SQL construct.

    Now, this very same code will execute in SQL Query Analyzer.

    Does anyone have any suggestions?

    Thank you,

    Peter

    Peter M. Florenzano

    Database Administrator

  • Also,

    I forgot to mention that I'm receiving errors on my GOTO statements too. And like the other error, this code works in SQL Query Analyzer.

    Peter

    Peter M. Florenzano

    Database Administrator

  • What kind of task are you using?

    SQL Task.

    If the SQL works in the query analyzer,

    maybe you can put the code in a stored procedure and call that procedure from the DTS package

  • I'm using the Execute SQL Task

    Peter M. Florenzano

    Database Administrator

  • I have used it in all forms

    Set ansi null on

    update employees

    set name = ''

    and

    set @name = 'max'

    It should work

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply