I never remember this syntax, so here it is for future reference:

To back with a SQL Server database with T-SQL, this is the command:

BACKUP DATABASE [YourDb] TO
DISK = N'C:\YourDb.bak' WITH STATS = 1

 

Be careful with using WITH STATS = 1 on very large databases