免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3568 | 回复: 10
打印 上一主题 下一主题

select into 错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-18 22:15 |只看该作者 |倒序浏览
环境:sybase11.9 2000server
在执行select * into #tt from tt 时,报错:
Server Message:  Number  268, Severity  16
Line 1:
You can't run SELECT INTO in this database. Please check with the Database Owner.

我执行 sp_helpdb TEST 时也出现同上面一样的错误
而且数据库的status的值是4,
请各位高手赐教,很急
谢谢

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
2 [报告]
发表于 2004-09-18 22:44 |只看该作者

select into 错误

你的用户在test里没有权限,先授权一下。

论坛徽章:
0
3 [报告]
发表于 2004-09-19 07:03 |只看该作者

select into 错误

可是我以sa 登陆的呀

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
4 [报告]
发表于 2004-09-19 08:24 |只看该作者

select into 错误

tempdb是否有问题?

论坛徽章:
0
5 [报告]
发表于 2004-09-19 08:27 |只看该作者

select into 错误

风云使者,你能否说详细点,怎么查看tempdb是否有问题,以及怎么解决,拜托啦

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
6 [报告]
发表于 2004-09-19 08:53 |只看该作者

select into 错误

sp_heplpdb tempdb把结果贴出来看看。
另外use tempdb
create tabel 试试,

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2004-09-19 11:20 |只看该作者

select into 错误

select into 需要你的database的options有select into /bulk copy
可以使用sp_configure确认设置了没有,如果没有, 设上即可

  1. sp_dboption your_database  "select into/bulkcopy", true
  2. go
  3. use your_database
  4. go
  5. checkpoint
  6. go
复制代码

论坛徽章:
0
8 [报告]
发表于 2004-09-19 13:54 |只看该作者

select into 错误

CNL 光明使者,你说得我已经做过了,不行。
chuxu 风云使者 : 执行sp_helpdb tempdb出现如下错误信息:
Server Message:  Number  268, Severity  16
Procedure 'sp_help', Line 285:
You can't run SELECT INTO in this database. Please check with the Database Owner.
(1 row affected)
(1 row affected)
(return status = -6)
但是create table 可以,什么原因?

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
9 [报告]
发表于 2004-09-19 21:08 |只看该作者

select into 错误

能把select * from master..sysdatabases where name='tempdb'
结果贴出来吗?

论坛徽章:
0
10 [报告]
发表于 2004-09-19 21:43 |只看该作者

select into 错误

chuxu ,你好,我按照你的操作,结果如下,你帮忙看看:

name                           dbid        suid        status      version     logptr      crdate                         dumptrdate                     status2     audflags    deftabaud   defvwaud    defpraud    def_remote_type def_remote_loc                                                                                                                                                                                                                                                  
----                           ----------- ----------- ----------- ----------- ----------- ------                         ----------                     ----------- ----------- ----------- ----------- ----------- --------------- --------------                                                                                                                                                                                                                                                  
tempdb                                   2           1           0           0        9135 Sep 18 2004  4:15PM            Sep 19 2004  9:38PM                 -32768        NULL        NULL        NULL        NULL            NULL NULL
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP