I have a database that is released as part of a thrid party product. I sent out an update but it failed at one of the customer sites because the objects were not fully quailified. The original statement work at all but one of the sites. The altered statement is what finally worked. The SQL Server instances are installation and configuration are controlled by our interface so all instances are installed and configured the same. Any idea on how this would happen It has never happened on previous updates.
Original Statement:
SELECT * FROM tblProcesses WHERE ProcessName='Name'
IF @@ROWCOUNT=0
INSERT INTO tblProcesses(ProcessName, GroupTypeID, ProcessDesc) VALUES('Name', 1, 'Description')
GO
Altered Statement:
SELECT * FROM dbname.dbo.tblProcesses WHERE tblProcesses.ProcessName='Name'
IF @@ROWCOUNT=0
INSERT INTO tblProcesses(ProcessName, GroupTypeID, ProcessDesc) VALUES('Name', 1, 'Description')
GO