CAC BUO'C DETACH DU LIEU: Dettach là gỡ bỏ CSDL khỏi SQL nhưng CSDL không bị mất *Khởi động SQL Server Management Studio Express bằng cách ™ WinRAR yp Search > @ Adobe Reader 7.0 7
Trang 2Trong qua trinh cai
you chek Quit, the application vail close enmediately
Cannot open database “VEMIS_S" requested by the login The login failed
Login fated for user 'BUDXUANBON\Bui Xuan Bon’
Trang 3CACH SU DUNG SQL SERVER DE
DETACH -ATTACH-DELETE -RESTORE
DU LIEU TRONG VEMIS
| Máy phải được cài đặt SQL Server
Management Studio Express
©) Windows Media Player
pe Search > | Adobe Reader 7,0
t Symantec Client Security >
Ẳ Herp end Support Gì Runtime Software
⁄ Run a Configuration Tools ;
(\ VEMI5 PROGRAMS C fe Sl erve Managemerit 5tudin Express
Lag Off Quoc Phong a anaglt 2
(0) Turn OFF Computer
Trang 4ll CAC BUO'C DETACH DU LIEU:
(Dettach là gỡ bỏ CSDL khỏi SQL nhưng CSDL không bị mất)
*Khởi động SQL Server Management Studio Express bằng cách
™) WinRAR )
yp Search > (@ Adobe Reader 7.0
7) Run TPC e014 t Configuration Tools ;
t VEMIS PROGRAMS
Turn OFF Computer
ow 3QljƑerver Management Studio Express
Trang 5au Connect to Server
Microsoft ay Windows Server System
SQL Server 2005
Server type: Database Engine
Server name: QUOC-446C34F30B\SQGLEXPRESS
Authentication: Windows 4uthentication
User name: QUOC-446C34F 30B\Quoc Phong
P asswof d :
Trang 6
File Edit View Tools Window Community Help
rere | DoF id OL OBB
Trang 8
cố Detach Database
“1G eneral <8 Script + W'3 Help
Databases to detach:
Database Name Drop Updat Keep Status Message
ị VEMIS_ STLI [| L] Ready
Trang 9Ê` Microsoft SQL Server Manapement Studio Express
File Edit View Tools Window Community Help
4 | Server Objects QUOC-4A6C34F30B)SQLEXPRESS| Databases thi mat mot # | Replication
Trang 10lll CAC BUO'C ATTACH DU LIEU
(Dùng đề kết nỗi CSDL với chương trình)
Khởi động SQL Server Management Studio Express bằng cách
_ x Search > (Ql Adobe Reader 7.0
| (Q Symantec Client Security }
1 Run li Microsoft 5QL 5erver 2005 T Configuration Tools
| = VEMIS PROGRAMS i 0) Snr CU FeTaT=]A Cf eg bel NTN (a aban) gts
| (0) Turn Off Computer
Trang 11
SOL ay Windows Server System
Server type Database Engine
Server name: QUOC-446C34F30B\SQLEXPRESS v
Authentication: Windows Authentication v
liser name QUOC-4A6C34F 308 \Quoe Phona
Trang 12nen \ © 6 1ïiapeme ae nre
File Edit View Tools Window Community Help
# (3 Server Objects QUOC-446C34F30B\SQLEXPRESS|Databases 6 Item(s)
Trang 13| Attach Databases Sele
Original File Name File Type Current File Path Message
Trang 14locate Database Files - QUOC-4A6C 34F 30B\SOLEX
Select the file:
(+) System Volume Information
Database = VEMIS
Files ta kich > _jg DATABASE _TKB
ˆ +' ca XMVERhilS_ Finance [Database
files can LBS cies ieee
+ _ YVEMIS_TESCATRS Attach + {jj VEMISDATABASE
+' ca VEMISDATABASE S
sau do chon + Sg WINDOWS
Selected path: C:SPEMISSDATABASESVEMIS_ STUDENTDATABASE |
Files of type: | Database Files{* mdf] ~ |
File name: VEMIS_ STUDENT Bxata maf |
Cx _Ƒ Cancel
Trang 15
cố Ättach Databases Sees
MDF File Location Database tach As Owner Status Message
| CAVEMIS\DATABA [ ] VEMIS_ST VEMIS_ST QUOC —
Add Remove | 'VEMIS_STUDENT" database details:
Original Eile “TP urrent File Pa
BE : VEMIS_STUDENT_ : Data C:\VEMIS\DATABASE’ L )
Trang 16VI CAC BUO'C RESTORE DU LIEU
(Dung trong trvong hop DELETE CSDL)
Lưu ý: Trước khi Delete ta phải dùng chức năng sao lưu dữ liệu của VEMIS
Khởi động SQL Server Management Studio Express bằng cách như sau:
1:7 Run (T008 0401 5 Configuration Tools ;
| Log Off Quoc Phong : anaglt 9 ,
Turn OFF Computer
sn * 20ýerver Managemert 5tuia Express
Trang 17au Connect to Server
Microsoft ay Windows Server System
SQL Server 2005
Server type: Database Engine
Server name: QUOC-446C34F30B\SQGLEXPRESS
Authentication: Windows 4uthentication
User name: QUOC-446C34F 30B\Quoc Phong
P asswof d :
Trang 19
Nhân chuột phải
Trang 20Restore Database } '- jFllX
Ss Script + IE Help
> General _ Options
Destination for restore
Select or type the name of a new or existing database for your restore operation
To database: VEMIS_ STLIDENT v
To 4 point in time: Most recent possible (
Select the backup sets to restore:
Source for restore
Trang 21m™ Specify Backup
Specify the backup media and its location for your restore operation
Trong hộp thoại Backup location:
chon Add sau
do chon OK
Cancel | Help |
Trang 22
Ÿ_Locate Backup File - QUOC-4A6C34F 30B\SQI EXPR [= |EI|X]
Select the file:
+ Jy WinRAR
+) _j xerox
_j RECYCLER _j System Yolume Information _ VEMIS
_y WINDOWS Backup Documents Khoa NN Lifelines B MAC HUNG
My Documents PHAN MEM DU AN THANG 6-2009 Recycled
S40 LUU BL _] TPS_ 2272008 bak _] VEMIIS_ 2272003 bak
_] VEMIS_Finance_2272003 bak
_] VEMIIS_S_ 2272003 bak
+ + + +
La + + + + + + + +
Selected path: D:\S40 LUU DL
Files of type: Backup Files(*.bak;*.trn) File name: VEMIS_STUDENT_2272009 bak
Trang 23
Specify the backup media and its location for your restore operation
Backup media: | File Backup location:
D:\SA0 LUU DLAVEMIS STUDENT 2272009 bak | Add
Trang 24| Restore Database - VEMIS STUDENT
Ss Script + U3 Help
(© Options
Destination for restore
Select or type the name of 4 new or existing database for your restore operation
Trong hộp To databaes: VEMIS_STUDENT
: To 4 point in time: Most recent possible
— 5 ©) From device: D:4\SA0 LUU DLAVEMIS_STUDENT_2272003 bak (
- Select the backup sets to restore:
sau d O Restore Name Component Type Server Database
Trang 25[L_] Restrict access to the restored database
Restore the database files as:
Original File Name Restore As
¡ VEMIS_ Schedule | F:WEMISXDATABASEXVEMIS_TEACHIN [ ]
Connection: O Leave the database non-operational, and do not roll back uncommitted transactions Additional
QUOC-446C34F30B Quoc transaction logs can be restored [RESTORE WITH NORECOVERY)
33 View connection properties
O Leave the database in read-only mode Undo uncommitted transactions, but save the undo
actions in 4 standby file so that recovery effects can be reversed (RESTORE WITH STANDBY)
Ready
Œ œ DI Cancel |
Trang 26
[] Preserve the replication settings
[|] Prompt before restoring each backup [| Restrict access to the restored database
Restore the database files as:
Original File Name Restore As
Man hinh xuat F VEMIS _Schedule _ CAVEMIS\DATABASESVEMIS_TEACHIN [_ ]
hien phuc hôi al ey tet hil 10 re:
3; View connection properties
th à n h CÔ n g d Cp i ) The restore of database 'EMIS_ 5chedule' completed successfully,
Trang 27
Ê› Microsoft SQL Server Management Studio Fxpress
File Edit View Tools Window Community Help
Unewquey [ị Guid BEBE KIẾP)
Man hinh CSDL trong SQL
Server của VEMIS trước
Trang 28®% VEMIS_STUDENTDATABASE
File Edit View Favorites Tools Help
@ Back > ©) 3 4Ð Search |j) Folders [7i?|v ý (cò
Address '|CS) C:\VEMISIDATABASEIVEMIS_5TLUDENTDATABASE
; ~ — YEMIS_STUDENT_Data.mdf - = YEMIS_STUDENT_Data_log.LDF
File and Folder Tasks SQL Server Database Primary ==) SOL Server Database Transac
14,656 KB 12,352 KB
Ø Make a new Folder
tà Publish this Folder to the
Trang 29F Microsoft SQL Server Management Studio Express
File Edit View Tools Window Community Help
UnewQuery [) Gag b& ey BE re
# | Security Data bases
# | Server Objects QLIOC-4ã6C34F30B1SQLEXPRES51Databases ? Item(s)
Trang 30®% VEMIS_STUDENTDATABASE
File Edit View Favorites Tools Help
@ Back > ©) 3 4Ð Search |j) Folders [7i?|v ý (cò
Address '|CS) C:\VEMISIDATABASEIVEMIS_5TLUDENTDATABASE
; ~ — YEMIS_STUDENT_Data.mdf - = YEMIS_STUDENT_Data_log.LDF
File and Folder Tasks SQL Server Database Primary ==) SOL Server Database Transac
14,656 KB 12,352 KB
Ø Make a new Folder
tà Publish this Folder to the
Trang 31F Microsoft SQL Server Management Studio Express
File Edit View Tools Window Community Help
Unewqey [) Goad bE AER S-
Man hinh CSDL trong SQL
Server VEMIS trước khi Delete
Trang 32®% VEMIS_STUDENTDATABASE
File Edit View Favorites Tools Help
@ Back > ©) 3 4Ð Search |j) Folders [7i?|v ý (cò
Address '|CS) C:\VEMISIDATABASEIVEMIS_5TLUDENTDATABASE
; ~ — YEMIS_STUDENT_Data.mdf - = YEMIS_STUDENT_Data_log.LDF
File and Folder Tasks SQL Server Database Primary ==) SOL Server Database Transac
14,656 KB 12,352 KB
Ø Make a new Folder
tà Publish this Folder to the
Trang 33F Microsoft SQL Server Management Studio Express
# | Security Data bases
# | Server Objects QLIOC-4ã6C34F30B1SQLEXPRES51Databases ? Item(s)
SENS 50m
Ready
Trang 34} } ATABA 5 a
File Edit View Favorites Tools Help ae
@ Back + ©) 43 4Ð Search ar Folders HAR a) i>
Address |¢5) C:\WEMIS\DATABASEWEMIS_STUDENTDATABASE ` Go
File and Folder Tasks
3 Make a new folder
và Publish this Folder to the
Web
ka? Share this folder
Other Places Man hinh CSDL