Givens:
DevServerA
DevServerB\\2K5
Problem:
Try using square brackets:
SELECT TOP 1 * FROM [DevServerB\2K5].master.sys.tables