Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

cross-database function call

$
0
0
i have 2 databases on the same serverOne has a function, the other has the tables and viewsusing dbaselect dbo.function(t.column) as x from dbb.dbo.table as tgives m an invalid object name of dbo.tableusing dbaselect top 1 * from dbb.dbo.table works fine.also if i create the function on the same db it works.Does anyone know if they have stopped allowing cross database function calls or if there is a syntax error in this?Can't say i use functions much so might be a bit out of touch.

Viewing all articles
Browse latest Browse all 3145