Seems @@SERVERNAME was set wrong. In case anyone else finds this on google or whatnot, it can be fixed thusly:DECLARE @InternalInstanceName sysname;DECLARE @MachineInstanceName sysname;SELECT @InternalInstanceName = @@SERVERNAME, @MachineInstanceName = CAST(SERVERPROPERTY('MACHINENAME') AS VARCHAR(128)) + COALESCE('\' + CAST(SERVERPROPERTY('INSTANCENAME') AS VARCHAR(128)), '');IF @InternalInstanceName <> @MachineInstanceNameBEGIN -- Rename the instance EXEC sp_dropserver @InternalInstanceName; EXEC sp_addserver @MachineInstanceName, 'LOCAL';END-- You now need to restart the server for the changes to take effect