what''s wrong with isql.exe syntax???

  • Hello

    I need to executer a .sql procedure from DOS using isql, but i keep on getting a syntax error:

    isql.exe -Smyserver -Usa -Ppassword -ic:\export_login.sql -oD:\backup\export.out -n

    isql: unknown option ûS

    any idea?

    Tks!!

  • The above parameters should work, but one possible reason for this problem is a simple path setting. You may not actually be executing SQL Server's isql.exe. For example, Firebird has an isql.exe, and if your path is not set properly, the wrong isql can get called.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • well, seems that the error is due to a wrong export path

     

    D:\backup does not exist , didn't notice that! But i wish i got a more meaningful error message

     

    Thanks!!

  • Try to run this command from \Binn folder

    Thx

  • Why?  The path should take care of things just fine.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Uh, Terry... if you think that's bad, wait until the world of hurt you run across when you try to do something a bit sophisticated in ISQL... ISQL is severly depracated when it comes to T-SQL... don't use ISQL... use OSQL, instead, which has no such limitations.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Thx all for the tips!

    osql works great!

  • You bet... thanks, for the feedback.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 8 posts - 1 through 7 (of 7 total)

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