Aracılığıyla paylaş


C# kodu ExecUDFReturningScalar için listeleme

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Aşağıdaki örnek oluşturur. ExceUDFReturningScalar.

private void ExecUDFReturningScalar_Click(System.Object sender, System.EventArgs e)
{
   server.sql_endpoint proxy = new server.sql_endpoint ();
   proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
   listBox1.Items.Add ("1) Executing SP. Result is ");
   listBox1.Items.Add ("");
   int results = proxy.UDFReturningAScalar ();
   listBox1.Items.Add ("UDF Return value ");
   listBox1.Items.Add (results);
}