I have a database that holds common functions that I use across multiple databases. One of these functions takes in a table as a parameter which is a user defined TYPE. I would like to know if there is a way to call this function from another database.
I tried to define the type in the other database like so:
DECLARE @bits as Common.dbo.Bits
However I received an error too many prefixes
I have tried adding the TYPE to each database, and then passing a table of that type to the function in the common database, but there I get an error of
Operand type clash: Bits is incompatible with Bits