利用T-SQL语句,实现数据库的备份与还原的功能,需要的朋友可以参考下。
( dbo.sysobjects id (N) xtype (N, N, N))
.
f_getdbpath( sysname)
()
()
()
((filename)) master..sysdatabases name
((filename)) master..sysdatabases name
((,(,),))
((,(,),))
()
( dbo.sysobjects id (N) (id, N) )
.
p_backupdb
sysname, (), (), (),
()
(,) ()
(,) dbo.f_getdbpath()
(,)
(((,,)
,,(,(),))
,,((,(),),,))
()
( dbo.sysobjects id (N) (id, N) )
.
p_RestoreDb
(), sysname, (), (), , ,
()
(,)
()
, (,)
(,(,),)
, (,)
(,(,))
,()
(,) dbo.f_getdbpath()
( )
(,)
(), (),
#tb(ln (),pn (),tp (),fgn (),sz numeric(,),Msz numeric(,))
#tb ()
#f ln,tp #tb
#f
#f ,
( )
,
#f ,
#f
#f
()
#spid
spid(spid ()) master..sysprocesses dbid()
#spid
#spid
()
#spid
#spid
#spid
()
( dbo.sysobjects id (N) (id, N) )
.
p_createjob
(), (), sysname, (), ,
(,) ()
msdb..sp_add_job
msdb..sp_add_jobstep ,
,
,
,
,
,
, ,
,
msdb..sp_add_jobschedule ,
,
, , , , ,
()
p_createjob ,,
DF
p_createjob ,,
p_createjob ,,,
()
p_createjob ,,,
p_createjob ,,,
p_createjob ,,,
Stellungnahme:Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn