in

SQL Server Community Blogs

Voices of the SQL Server Community

Browse by Tags

  • Backup Database

    This query will backup the current database declare @sql varchar(1000) select @sql = 'BACKUP DATABASE '+(select db_name())+' TO DISK = ''E:\'+(select db_name())+ convert(varchar,GETDATE(),112)+'.bak''' Exec(@sql) If the database name is Test then executing this query will backup Test database and name...
    Posted to Madhivanan (Weblog) by Madhivanan on 08-27-2007
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems