Partilhar via


C# Code Listing for ExecUDFReturningScalar

The following sample creates 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);
}

See Also

Reference

Sending SOAP Requests by Using Visual Studio 2005 Client (C#)

Help and Information

Getting SQL Server 2005 Assistance