I have 2 SQL Servers, SQL1 and SQL2.
I need to run stored procedures on SQL1 that reference tables in a database in SQL2.
Is this even possible? If so, how do I format the code?
yes you can. You need to use fully qualified names. The complete name of an object, in this case a stored procedure, consists of four identifiers: the server name, database name, owner name, and object name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.