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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Why are some comments removed from stored procedures in SQL Server 2005?

Why are some comments removed from stored procedures in SQL Server 2005?

Scheduled Pinned Locked Moved Database
databasesql-serversysadmindebuggingtools
2 Posts 1 Posters 1 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.
  • R Offline
    R Offline
    Ron Savage
    wrote on last edited by
    #1

    I use a lot of comments in my stored procedures to document my code for future developers that might have to modify / debug it. However, when I view my stored procedure script or pick the "modify" option in SQL Server Management Studio the code comes up with blank lines where my comments are supposed to be. I see other stored procedures that have retained thier comments (although they are much smaller in size) using the same "--" single line comment that I use. Anyone know why that is happening? Thanks,

    Ron

    R 1 Reply Last reply
    0
    • R Ron Savage

      I use a lot of comments in my stored procedures to document my code for future developers that might have to modify / debug it. However, when I view my stored procedure script or pick the "modify" option in SQL Server Management Studio the code comes up with blank lines where my comments are supposed to be. I see other stored procedures that have retained thier comments (although they are much smaller in size) using the same "--" single line comment that I use. Anyone know why that is happening? Thanks,

      Ron

      R Offline
      R Offline
      Ron Savage
      wrote on last edited by
      #2

      Nevermind, I figured it out. The query tool I am using ( WinSQL - very handy tool ) has an option to "Parse Comments Locally" which was turned on - so it was removing the comments *before* sending the to SQL Server to save. :-)

      Ron

      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