programmatically switching off (x row(s) affected) in query analyser results pane

  • hey guys,

    just a quicky, i can't remember for the life of me how to programmatically turn off the (x row(s) affected) result returned to the query analyser results pane in T-SQL.  anyone rememeber please?

    many thanks,

    lloyd

  • Use 'set nocount', eg

    set nocount on

    select etc

    ...

    set nocount off

    Regards

    Phil

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • thats the one,

    thanks phil

Viewing 3 posts - 1 through 2 (of 2 total)

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