I have the following statement as the first step in a Stored procedure
As
BEGIN
SET NOCOUNT ON
DELETE DB1.dbo.Members WHERE DB1.dbo.members.ID = DB2.dbo.in_table.ID
--after the delete I will insert all of the new data from in_table to Members
END
DB2.dbo.in_table.ID won’t bind. The stored procedure is set to be stored on DB2.
DB1 locations bind perfectly. Is it a database permission issue?
You are not referencing or JOINing the second table anywhere in your query: