call a sqlserver function from vb2005
Hello. Aquestion please. Could anyone say me how can I call a sqlserver function from sqlserver ?
thanks..
Hello. Aquestion please. Could anyone say me how can I call a sqlserver function from sqlserver ?
thanks..
Use ADO.NET and the sqlCommand object.
Public NotInheritable Class SqlCommand
Inherits System.Data.Common.DbCommand
Member of: System.Data.SqlClient
Summary:
Represents a Transact-SQL statement or stored procedure to execute against a SQL Server database. This class cannot be inherited.
NetPochi,
It is not so clear that you want to call a SQL Server function from sqlserver. In Common Language Runtime, there are so many objects and methods or as you described functions, such as SqlConnection, the connectionString configuration for you to connect to the SQL Server databse, SqlCommand, the SQL statement for manipulating the data, DataReader and DataSet, two methods for accessing data in your database. Could you tell me your target of calling the functions for?