Sysobjects this thing there are other uses, specific reference to SQL Server computer Help
In Ado.net, get the parameter information for a stored procedure:
SqlConnection connect = new SqlConnection (ConnectionString);
Connect. Open ();
SqlCommand sc = new SqlCommand ("SalesByCategory", connect); SalesByCategory is a stored procedure in the Northwind database.
Sc.commandtype = CommandType.StoredProcedure;
Sqlcommandbuilder.deriveparameters (SC);
foreach (SqlParameter param in SC. Parameters)
{
Console.WriteLine ("Name:{0}, Size:{1}, type:{2}, Value:{3},direction:{4}, isnull:{5}", Param. ParameterName, Param. Size, Param. DbType, Param. Value, Param. Direction, Param. isnullable);
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.