Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 14.07.2007, 21:12   #2
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

Code:
create procedure sp_DBBackup
(
	@path varchar(200),
	@basename varchar(200)
)
as
begin
	declare @name varchar(500)
	select @name = @path + convert(varchar, getdate(), 105) + '(' + replace(convert(varchar, getdate(), 108), ':', '-') + ')' + @basename + '.bak'
	backup database @basename to disk = @name
end
go
usage:
Code:
exec sp_DBBackup 'c:\sql-backup\', 'database_name'
hr is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:15.