I have two databases (in the same SQL instance), and I am trying to access a table in database A from a stored procedure which resides on database B. The format of the query is simply:
select field1, field2, field3
from DatabaseB..Tablename
I have this query working find on my local development SQL instance, but when put onto the production server, it returns the error,
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'DatabaseB..Tablename'.
Both the development and production environment are running default installs of SQL Server 2000, and the database and table names are identical across the two environments. Might I have an ODBC issue or perhaps a permissions issue?
select field1, field2, field3
from DatabaseB..Tablename
I have this query working find on my local development SQL instance, but when put onto the production server, it returns the error,
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'DatabaseB..Tablename'.
Both the development and production environment are running default installs of SQL Server 2000, and the database and table names are identical across the two environments. Might I have an ODBC issue or perhaps a permissions issue?