tags:

views:

57

answers:

2

I'm looking at writing a tool for generating code based on the contents of a stored procedure. Like the parameters and stuff.

I was wondering if anybody knew of an open source library that has a all the regex's and stuff to parse all this easily.

Thanks.

A: 

try GOLD parser

Mladen Prajdic
A: 

If the proc is already in Sql Server, and you're just looking for parameter info, you can query INFORMATION_SCHEMA.PARAMETERS. Also, sp_help will show it as the second resultset.

Mark Brackett