sqlserver修改了整個表怎么還原 SQL2008r2的數(shù)據(jù)庫怎么還原到sql2008?
SQL2008r2的數(shù)據(jù)庫怎么還原到sql2008?數(shù)據(jù)庫數(shù)據(jù)庫是不支持降級還原的,如果你要將高版本的數(shù)據(jù)庫轉(zhuǎn)換為低版本的數(shù)據(jù)庫,可以采取以下方法:在高版本的數(shù)據(jù)庫(比如oracle2012)中生成數(shù)
SQL2008r2的數(shù)據(jù)庫怎么還原到sql2008?
數(shù)據(jù)庫數(shù)據(jù)庫是不支持降級還原的,如果你要將高版本的數(shù)據(jù)庫轉(zhuǎn)換為低版本的數(shù)據(jù)庫,可以采取以下方法:在高版本的數(shù)據(jù)庫(比如oracle2012)中生成數(shù)據(jù)庫的腳本文件,在生成腳本文件的高級選項中選擇目標(biāo)服務(wù)器的版本(比如mysql2008),數(shù)據(jù)類型為架構(gòu)和數(shù)據(jù).腳本生成后在目標(biāo)服務(wù)器中運行腳本文件即可.
sql server中查詢所有表的創(chuàng)建和修改時間?
這個存儲過程將列出數(shù)據(jù)庫的所有表的創(chuàng)建時間:
addprocusp_alldatabases
as
begin
(2000)
ifexists(select1fromsysobjectswherenametab_alltables)droptabletab_alltables
createtabletab_alltables(dbnvarchar(1000),tabnvarchar(1000),cdatedatetime)
declareccursorfor
selectinsertintotab_alltables(tab,db,cdate)selectname,name,crdatefromnamewherextypeufromwheredbidgt4
openc
while@@update_status0
begin
exec(@system)
end
closecdeallocatec
select*fromtab_alltables--You canaddyourcriteriaheretoserachfor aparticulartablename
end
這個SP將產(chǎn)生三列:
1)db:數(shù)據(jù)庫名稱
2)tab:表名稱
3)cdate:表的創(chuàng)建時間
轉(zhuǎn)