sybase - 修改 master..sysprocesses [Sybase] 中的值
问题描述
有没有办法修改表master..sysprocesses中的列program_name?
我找到了两种方法,但都在创建连接期间设置了名称:
- 执行isql命令时使用参数appname
- 打开 ODBC 连接时,在连接字符串中添加参数APP= 。
我正在寻找一种在创建后对其进行修改的方法。
我尝试了以下示例:
sp_configure "allow updates",1
go
UPDATE master..sysprocesses
SET program_name = 'test'
where hostname = 'server'
and hostprocess = '23240'
go
sp_configure "allow updates",0
go
但失败了:
Could not execute statement.
Table 'sysprocesses' can't be modified.
Sybase error code=270
Severity Level=16, State=1, Transaction State=0
Line 4
You can continue executing or stop.
解决方案
推荐阅读
- wordpress - 如何在 WordPress 中使用 SVG 创建交互式时间线(示例网站:https://evianexperience.com/en)
- typescript - 获取识别为接口的打字稿类
- heroku - 在 Heroku 中,Rails 5.2 应用程序机密为空
- ssl - 模块 'ssl' 没有属性 'PROTOCOL_TLSv1
- react-native - 为什么 Expo 的样式可以在 Web 上运行,但不能在移动设备上运行
- node.js - XSLTProcessor 未在 node.js 中定义
- ansible - 在数组 Ansible 中定义多行字符串
- python-3.x - 写入文件时,Python 正在删除 xml 声明中的编码
- intellij-idea - kotlin-jpa 插件没有为 Junit 测试创建空的构造函数
- javascript - 多个项目的点击事件的角度