0

I'm looking for a way to properly comment my stored procedure code so that I can extract the information into useful documentation ala something like XDOC (or C# equivalent). Something that's preferably lightweight would be ideal.

Orion Adrian
  • 19,053
  • 13
  • 51
  • 67

2 Answers2

0

If you're already using Sandcastle to generate documentation based on the XML comments that Visual Studio generates, you might want to check out the following CodeProject project:

SQL XML Documentation

It shows you how you can use the tools you're already using to generate documentation for your SQL objects in the same style as the documentation you're already generating for the rest of your code.

Justin Niessner
  • 242,243
  • 40
  • 408
  • 536
0

Why not use extended properties which can be queried in a simple SQL statement?

SELECT * FROM sys.extended_properties

No need for any plug-ins, add-ons, or have a specific stored proc layout...

This is what we use for every object in our databases (and we also use Red Gate SQL Doc too to give some structure and a nice web site)

gbn
  • 422,506
  • 82
  • 585
  • 676