-2

Does anyone know of a freeware to generate SQL Server stored procedure (ie trigger) from a SQL statement?

I mean I don't want the just basic CRUD stored procedures... What I'm looking for is something like this:

Taking a SQL statement like:

INSERT INTO TableB (ColumnA, ColumnB...) 
      (SELECT Distinct ValueA,ValueB FROM someTable where someColumn = someValue)

And issuing the complete stored procedure statements...

4

1 回答 1

1

存储过程和触发器是完全不同的东西。

有像AutoAudit这样的东西会为表生成触发器。

除了普通的 CRUD,我不确定您在过程中还要寻找什么,但当然可以将其添加到代码生成模板中 - 如果您的代码生成很复杂,请查看 T4 模板引擎。

于 2011-01-19T23:19:26.280 回答