티스토리 뷰

반응형


-- DB MSSQL attach
sp_attach_db @dbname = 'AMAILCS',
@filename1 = 'D:\MSSQL\Data\AmailCS\AMAILCS_Data.MDF',
@filename2 = 'D:\MSSQL\Log\AmailCS\AMAILCS_Log.LDF'

sp_attach_db @dbname = 'AMAILCS_DEV',
@filename1 = 'D:\MSSQL\Data\AmailCS_Dev\AMAILCS_DEV_Data.MDF',
@filename2 = 'D:\MSSQL\Log\AmailCS_Dev\AMAILCS_DEV_Log.LDF'

sp_attach_db @dbname = 'AMAILCSNEW',
@filename1 = 'D:\MSSQL\Data\AmailCS_New\AMAILCSNEW_Data.MDF',
@filename2 = 'D:\MSSQL\Log\AmailCS_New\AMAILCSNEW_Log.LDF'

sp_attach_db @dbname = 'CS',
@filename1 = 'D:\MSSQL\Data\CS\CS_Data.MDF',
@filename2 = 'D:\MSSQL\Log\CS\CS_Log.LDF'

sp_attach_db @dbname = 'EMS51_BMT',
@filename1 = 'D:\MSSQL\Data\EMS51_BMT\EMS51_BMT_Data.MDF',
@filename2 = 'D:\MSSQL\Log\EMS51_BMT\EMS51_BMT_Log.LDF'

sp_attach_db @dbname = 'EMS_BMT',
@filename1 = 'D:\MSSQL\Data\EMS_BMT\EMS_BMT_Data.MDF',
@filename2 = 'D:\MSSQL\Log\EMS_BMT\EMS_BMT_Log.LDF'

------------------------------------------------

-- 데이터베이스 권한
use ems51_bmt
exec sp_change_users_login 'Update_One', 'ems51_bmt', 'ems51_bmt'

use ems_bmt
exec sp_change_users_login 'Update_One', 'ems_bmt', 'ems_bmt'

반응형

'Database' 카테고리의 다른 글

[ORACLE]OUTER JOIN  (0) 2010.08.26
IBM DB2에서 select and update,delete 하기  (0) 2010.07.19
[MSSQL]일별,주별,월별 통계  (0) 2010.06.29
MSSQL 데이터 백업  (0) 2010.06.07
Oracle DELETE_TRIGGER  (0) 2010.05.31
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함