sybase 中的默认文本大小
sybase 中的默认文本大小为 32768。 当我登录到 sybase 并输入时,我可以看到这一点:
1> select @@textsize
2> go
-----------
32768
(1 row affected)
当我进行一些谷歌搜索时,我得到了使用 set 命令的信息,我可以将默认文本大小更改为我自己的值,
1> set textsize 42768
2> go
1> select @@textsize
2> go
-----------
42768
(1 row affected)
但我的问题是这不会持续存在。 一旦我关闭会话,它就会设置回 32768。
有谁知道我如何在 sybase 中永久更改默认文本大小。
the default textsize in sybase is 32768.
i can see this when i login to sybase and type:
1> select @@textsize
2> go
-----------
32768
(1 row affected)
when i did some googling i got the info that using the set command i can change the default textsize to my own value
1> set textsize 42768
2> go
1> select @@textsize
2> go
-----------
42768
(1 row affected)
But my problem here is this is not persisting.
as soon as i close the session,it sets back to 32768.
does anybody know how could i change the default textsize permanently in sybase.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有办法持久化它,它必须根据需要在每个会话中设置。 sp_configure没有相应的参数。
http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc31654.1570/html/sag1/X68714.htm
如果在存储过程中设置,则该设置将持续存储过程的范围。
结果
Sybase ASE 16 更新
这可以通过在登录的默认数据库中使用登录触发器来实现。
将登录触发器添加到用户帐户。
在另一个 isql 会话中测试:
There is no way to persist this it must be set within each session as required. There is no corresponding parameter for sp_configure.
http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc31654.1570/html/sag1/X68714.htm
If it's set within a stored procedure, the setting lasts for the stored procedure's scope.
Result
Update for Sybase ASE 16
This can be achieved using a login trigger in the login's default database.
Add the login trigger to the user account.
Test in another isql session:
来自此处!
set textsize 命令指定通过 select 语句返回的文本或图像数据的限制(以字节为单位)。例如,此命令将 select 语句返回的文本或图像数据的限制设置为 100 个字节:
当前设置存储在 @@textsize 全局变量中。 默认设置由客户端程序控制。要重置默认值,请发出:
我认为默认值是在配置服务器时配置的。
From HERE!
The set textsize command specifies the limit, in bytes, of the text or image data to be returned with a select statement. For example, this command sets the limit on text or image data returned with a select statement to 100 bytes:
The current setting is stored in the @@textsize global variable. The default setting is controlled by the client program. To reset the default, issue:
I think the default value is configured when configuring the server.