I have a user defined function in a different database than the one i am querying from. Is there a way to access the function such as a fully qualified name or something similar in SQL? I am trying to do this
[dbo].[EscalationManagementSystem].fncCVUnix2DateTZ(...
But i get an error saying that it cannot find the column "dbo" or the user defined function "dbo.EscalationManagemntSystem.fncCVUnix2DateTZ". Is my syntax wrong?
The proper format is Database.Schema.Object, so you would have:
[EscalationManagementSystem].[dbo].[fncCVUnix2DateTZ](...
Every time you need to access objects from another db you should use something called the "four part name convention" which is:
SERVER.DATABASE.SCHEMA.OBJECT
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With