-
修改数据库物理路径
- select database_id,name,physical_name AS CurrentLocation,state_desc,size from sys.master_files
- where database_id=db_id(N'数据库名');
-
- alter database 数据库名 modify file ( name = 文件名(不包含后缀), filename = '文件存储路径');
- alter database 数据库名 modify file ( name = 文件名(不包含后缀), filename = '文件存储路径');
- eg.
- alter database testDb modify file ( name = testDb, filename = 'G:SQL_DATA estDb estDb.mdf');
- alter database testDb modify file ( name = testDb_log, filename = 'G:SQL_DATA estDb estdb_log.ldf');
-
- EXEC xp_instance_regwrite
- @rootkey='HKEY_LOCAL_MACHINE',
- @key='SoftwareMicrosoftMSSQLServerMSSQLServer',
- @value_name='DefaultData',
- @type=REG_SZ,
- @value='E:MSSQL_MDFdata'
- GO
- EXEC master..xp_instance_regwrite
- @rootkey='HKEY_LOCAL_MACHINE',
- @key='SoftwareMicrosoftMSSQLServerMSSQLServer',
- @value_name='DefaultLog',
- @type=REG_SZ,
- @value='E:MSSQL_MDFlog'
- GO
-
相关阅读:
9.8-9.9多校互测与牛客网提高一测
数位$dp$
互不侵犯_状压$dp$
状态压缩dp初学__$Corn Fields$
树形$dp$学习笔记
最长公共上升子序列$LCIS$
区间dp学习笔记
保护知识产权,让创新更有动力!
crmeb后台七牛云存储相关配置步骤
crmeb一款最适合二次开发的开源微信公众号小程序框架
-
原文地址:https://www.cnblogs.com/heqianjin/p/5881820.html
Copyright © 2020-2023
润新知