|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to create a UDF using mssql server 2000 that return a field from a table, but the return value i want it to be as value not as table. Is That could be done ?
|
|
#2
|
||||
|
||||
|
I am not familiar with the term 'UDF'. Is it some sort of recordset variant?
|
|
#3
|
|||
|
|||
|
If you know what type you would like the function to return you could use that type :
Code:
CREATE FUNCTION fnTest RETURNS varchar(50) -- this will return a text value AS BEGIN .... END GO Note: Since User Defined Functions are SQL native, this question actually belongs in the forum MS Access/SQL server.
__________________
- Rogier Doekes |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > return a field from a table using UDF |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|