I am doing the following:
Insert into table1
(Phone#) values @Phone
There is a custom function which will format the phone number. It accepts as input parameter the phone number and returns the formatted version.
I tried the following but not sure it would not work:
Insert into table1
(Phone#) values fn_phone(@Phone)
It says fn_phone is not a recognized built in function name. Am I doing something wrong on how I am calling fn_phone?
Use two-part name when you are calling UDF
Try this: