Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SET NOCOUNT

SET NOCOUNT

Scheduled Pinned Locked Moved Database
databasesysadmintutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 3484936
    wrote on last edited by
    #1

    How to do SET NOCOUNT ON at database level or at server level Thanks in advance

    W 1 Reply Last reply
    0
    • U User 3484936

      How to do SET NOCOUNT ON at database level or at server level Thanks in advance

      W Offline
      W Offline
      Wayne Gaylard
      wrote on last edited by
      #2

      There is no option to turn this on for a particular database on the server. You can turn this off for the whole server Properties > Connections > No Count checkbox.

      When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

      U 1 Reply Last reply
      0
      • W Wayne Gaylard

        There is no option to turn this on for a particular database on the server. You can turn this off for the whole server Properties > Connections > No Count checkbox.

        When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

        U Offline
        U Offline
        User 3484936
        wrote on last edited by
        #3

        Hi Even then rows effected i'm getting -1 in select statement . What i'm observing is that when i put SET NOCOUNT ON before sql statement even then it is returning -1. I guess it shud return 0 . I'm having sql server 2005 . Please help. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups