Question : Can't Find UDF

Experts,

I can use a UDF as a field in a result set, can't I?  In the attached code, I'm trying to call a UDF near the bottom that takes a zip code and returns a time-zone.  I get an underline error telling me it's not a built-in function name.  What gives?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
INSERT INTO ScheduleCenter 
(
ScheduleCenterID
,ScheduleRuleCode
,ClientID
,[Name]
,City
,PostalCode
,TimeZone)
SELECT 
AssessmentCenterID
,'MONDAY ONLY 8-3:30 BREAK NOON-1'
,ac.ClientID
,[Name]
,ISNULL(ac.City,' ')
,ISNULL(ac.Zip,' ')
,dbo.udfGetTimeZoneByZip_DATA_MIGRATION(Zip)
FROM AssessmentCenter ac 
WHERE [Name] LIKE '%New Hyde Park%'

Answer : Can't Find UDF

did you actually run that query, ssms sometimes shows such error, but you will be able to execute it, its a bug in ssms
Random Solutions  
 
programming4us programming4us