首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

The 'select into' database option is not enabled for database *

2013-03-21 
The select into database option is not enabled for database ***在sybase进行列更新语句时,可能会遇

The 'select into' database option is not enabled for database ***

在sybase进行列更新语句时,可能会遇到这样的错误

无法执行语句。The 'select into' database option is not enabled for database '#TABLE_NAME#'.ALTER TABLE with data copy cannot be done. Set the 'select into'database option and re-run.Sybase 错误代码=11052Severity Level=16, State=1, Transaction State=1第 2 行alter table #TABLE_NAME# modify #COLUM# varchar(100)

?

错误产生的原因是sybase数据库没有赋予当前库执行select into的权限,修改方法有两种:

1. 如果仅是偶尔执行alert语句,可以先执行以下sql:

use mastergoexec sp_dboption '#DB_NAME#', 'select into', 'TRUE'go

?2. 修改数据实例属性,赋予select into等权限:


The 'select into' database option is not enabled for database *
?

热点排行