|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这种服务也提供了足够的监控功能来跟踪性能和使用情况,在问题发生时将发出通知并生成一定深度的分析报告。以下仅为参照,假如有多个实例,大概会有些许分歧:
本情况是SQLServer2005StandardVersion64-bit和SQLServer2008StandardVersion64-bit双实例同时安装在一个
WindowsServer2008StandardVersion64-bitOS上:
代码
复制代码代码以下:
WindowsServer2008StandardVersion64-bit
SQLServer2005StandardVersion64-bit
查询用户库Data文件默许路径:
DECLARE@DefaultDataVARCHAR(100)
EXECmaster..xp_regread@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL.1MSSQLServer,
@value_name=DefaultData,
@DefaultData=@DefaultDataOUTPUT
SELECT@DefaultData
查询用户库Log文件默许路径:
DECLARE@DefaultLogVARCHAR(100)
EXECmaster..xp_regread@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL.1MSSQLServer,
@value_name=DefaultLog,
@DefaultLog=@DefaultLogOUTPUT
SELECT@DefaultLog
查询用户库备份文件默许路径:
DECLARE@BackupDirectoryVARCHAR(100)
EXECmaster..xp_regread@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL.1MSSQLServer,
@value_name=BackupDirectory,
@BackupDirectory=@BackupDirectoryOUTPUT
SELECT@BackupDirectory
修正用户库Data文件默许路径:
EXECmaster..xp_regwrite
@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL.1MSSQLServer,
@value_name=DefaultData,
@type=REG_SZ,
@value=D:SQL2005Data
修正用户库Log文件默许路径:
EXECmaster..xp_regwrite
@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL.1MSSQLServer,
@value_name=DefaultLog,
@type=REG_SZ,
@value=D:SQL2005Log
修正用户库备份文件默许路径:
EXECmaster..xp_regwrite
@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL.1MSSQLServer,
@value_name=BackupDirectory,
@type=REG_SZ,
@value=D:SQL2005DBBak
复制代码代码以下:
WindowsServer2008StandardVersion64-bit
SQLServer2008StandardVersion64-bit
查询用户库Data文件默许路径:
DECLARE@DefaultDataVARCHAR(100)
EXECmaster..xp_regread@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL10.SQL2008MSSQLServer,
@value_name=DefaultData,
@DefaultData=@DefaultDataOUTPUT
SELECT@DefaultData
查询用户库Log文件默许路径:
DECLARE@DefaultLogVARCHAR(100)
EXECmaster..xp_regread@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL10.SQL2008MSSQLServer,
@value_name=DefaultLog,
@DefaultLog=@DefaultLogOUTPUT
SELECT@DefaultLog
查询用户库备份文件默许路径:
DECLARE@BackupDirectoryVARCHAR(100)
EXECmaster..xp_regread@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL10.SQL2008MSSQLServer,
@value_name=BackupDirectory,
@BackupDirectory=@BackupDirectoryOUTPUT
SELECT@BackupDirectory
修正用户库Data文件默许路径:
EXECmaster..xp_regwrite
@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL10.SQL2008MSSQLServer,
@value_name=DefaultData,
@type=REG_SZ,
@value=D:SQL2008Data
修正用户库Log文件默许路径:
EXECmaster..xp_regwrite
@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL10.SQL2008MSSQLServer,
@value_name=DefaultLog,
@type=REG_SZ,
@value=D:SQL2008Log
修正用户库备份文件默许路径:
EXECmaster..xp_regwrite
@rootkey=HKEY_LOCAL_MACHINE,
@key=SoftwareMicrosoftMicrosoftSQLServerMSSQL10.SQL2008MSSQLServer,
@value_name=BackupDirectory,
@type=REG_SZ,
@value=D:SQL2008DBBak
也许最好的策略是以不变应万变:给客户他们所需要的,不多也不少。如果MySQL学习教程适合他们,他们就不应该买别的工具。事实上,云计算产业一直推崇自助服务,但提供这些服务的公司已经开始认识到解决方案提供商推销他们商品的价值。 |
|