Databases

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Removing extra information

    7 answers - 189 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Can anyone tell me how to remove extra information like header and
    footer information from an output of a query?
    Any help will be greatly appreciated
    TIA
  • No.1 | | 157 bytes | |

    i think i got it. The isql - option takes care of the header info.
    still i didnt found any parameter for footer part in isql. any help?
  • No.2 | | 44 bytes | |

    Perhaps "set nocount on"?
  • No.3 | | 142 bytes | |

    Try -b option with set nocount on
    isql -Usa -Sserver -b << eof
    set nocount on
    go
    command
    go
    eof
  • No.4 | | 379 bytes | |

    surajkumar1@gmail.com schrieb:
    Try -b option with set nocount on

    isql -Usa -Sserver -b << eof
    set nocount on
    go
    command
    go
    eof

    or:

    isql -U<login-P<pass-D<databae-S<server<<SQL | grep ""
    select "", column1, column2
    from table
    go
    SQL

    or use awk/cut to process results instead of grep.
  • No.5 | | 348 bytes | |

    thanx for the reply. one more thing, -b option in isql takes care of
    the header part. is there any parameter that we
    can define with the isql that takes care of footer also.
    of course we can use nocount to do this. just wanted to know any
    parameter that we can define with isql to do this?
    just curious.

    TIA

  • No.6 | | 95 bytes | |

    There is no ISQL parameter to remove the rowcount from the display.
    -bret
  • No.7 | | 24 bytes | |

    Thnx.

Re: Removing extra information


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Databases"

EMSDN.COM