Not sure what I'm doing wrong here...but in my function I have
DECLARE @CountryName VARCHAR(50)
SELECT @CountryName =
Descrip FROM [myDB].[dbo].[syCountry]
WHERE [myDB].[dbo].[syCountry] = @CountryID
RETURN(@CountryName)
Error:
The column prefix 'dbo' does not match with a table name or alias name used in the query.