Afternoon,I have a backup script that I inherited. It iterates through all the databases and works like a charm unless it finds one with a space in the name, I just got here I din't name them before you yell :)I tried putting brackets around the dbname and it didnt like it got a syntax error. If someone could point me in the right direction that would be great.ThanksLaura/*Backup Databases*/select @cmd = 'backup database ' + rtrim(@dbname) + ' to disk = ''D:\micros~1\mssql\backup\' + rtrim(@dbname) + '\' + rtrim(@dbname) + '.bak'' with init, noformat, noskip' print @cmd exec (@cmd)if @@error <> 0 begin raiserror('Database Backup Failed',16,1) end