Sponsored Topics. For geographic and demographic information on the census-designated place Bridgewater, please see the article Bridgewater (CDP), Massachusetts. The Town of Bridgewater is a city in Plymouth County, Massachusetts, United States, 28 miles (43 km) south of Boston. At the 2000 Census, the population was 25,185.
User-defined functions combine the advantages of stored procedures with the capabilities of SQL predefined functions. They can accept parameters, perform specific calculations based on data retrieved by one or more SELECT statement, and return results directly to the calling SQL statement.
There are three types of User-Defined functions in SQL Server 2000 and they are Scalar, Inline Table-Valued and Multi-statement Table-valued. A Scalar user-defined function returns one of the scalar data types. Text, ntext, image and timestamp data types are not supported. These are the type of user-defined functions that most developers are used to in other programming languages. You pass in 0 to many parameters and you get a return value.