I have a table type defined in the database. It is used as a parameter stored in a table in a stored procedure. I would like to call this procedure from another database, and in order to pass the parameter, I need to refer to this specific type.
But when I do DECLARE @table dbOtherDatabase.dbo.TypeName , it tells me that The type name 'dbOtherDatabase.dbo.TypeName' contains more than the maximum number of prefixes. The maximum is 1. The type name 'dbOtherDatabase.dbo.TypeName' contains more than the maximum number of prefixes. The maximum is 1.
How can I refer to this type of table?
sql-server-2008 user-defined-types
Victor Rodrigues
source share