1

如何使用 sp_getProcedureColumns()?

我找不到任何文档。

谢谢,

霍华德

4

1 回答 1

2

我不确定为什么没有记录该系统过程。但是,我相信它使用与sp_GetColumns相同的语法。例如,

execute procedure sp_getProcedureColumns(null, null, 'myAEP', null );

根据另一个问题的评论,您可能还对AdsCommand.DeriveParameters. 这是一个例子:

AdsCommand cmd = conn.CreateCommand();
cmd.CommandText = "SomeProcedure";
cmd.CommandType = CommandType.StoredProcedure;
cmd.DeriveParameters();
foreach ( AdsParameter p in cmd.Parameters )
   Console.WriteLine( "{0}, {1}, {2}", p.ParameterName, p.DbType.ToString(), 
                        p.Direction.ToString() );
于 2010-07-01T14:28:22.740 回答