Viewing 2 posts - 1 through 2 (of 2 total)
If the machine name was changed after the SQL server have been installed some connnections will fail. Check these :
sp_helpserver 'SERVERNAME'
Select SERVERPROPERTY ('SERVERNAME')
SELECT SERVERPROPERTY ('SERVERNAME')
SELECT @@SERVERNAME
June 30, 2004 at 2:39 pm
#512757
You cannot catch that error from inside the SP because its execution will never reach IF @@ERROR ...
But you can catch that error from the calling stored procedure or connection.
DECLARE
June 25, 2004 at 1:32 pm
#512040