We randomly assigned patients to receive dalbavancin intravenously on days 1 and 8 or vancomycin intravenously for at least 3 days with the option to switch to oral linezolid to complete 10 to 14 days of therapy .