|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Using SMO for .NET 2.0 how can I determine...
If a stored procedure's parameter is Input only, or input/output? You can use the IsOutputParameter property of the StoredProcedureParameter
object e.g. Server svr = new Server(); StoredProcedure p = svr.Databases["master"].StoredProcedures["sp_dbcmptlevel", "dbo"]; foreach (StoredProcedureParameter sp in p.Parameters) { Console.WriteLine(sp.Name + "," + sp.DataType.ToString() + "," + (sp.IsOutputParameter ? "Input/Output" : "Input")); } Show quote "Lee" <L**@discussions.microsoft.com> wrote in message news:7977CBBF-A908-43B7-81F6-2DF84D53030A@microsoft.com... > Using SMO for .NET 2.0 how can I determine... > If a stored procedure's parameter is Input only, or input/output? |
|||||||||||||||||||||||