说对了,是没建主键。
另: 我安装了pubs2数据库(sybase自带那个),安装完后打开所有表(用户表),里面是空的,没一条记录。
安装后的提示: 帮忙看看有什么问题
Creating the "pubs2" database Server Message: Number 1805, Severity 10 Line 9: CREATE DATABASE: allocating 1024 logical pages (16.0 megabytes) on disk 'master'. Database option 'trunc log on chkpt' turned ON for database 'pubs2'. Run the CHECKPOINT command in the database that was changed. (return status = 0) Type added. (1 row affected) Type added. (1 row affected) (return status = 0) (return status = 0) New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. New primary key added. (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) New foreign key added. New foreign key added. New foreign key added. New foreign key added. New foreign key added. New foreign key added. New foreign key added. New foreign key added. New foreign key added. New foreign key added. (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) (return status = 0) Server Message: Number 3935, Severity 20 Procedure 'sp_bindefault', Line 254: Fatal protocol error. xact_beginupdate() API was invoked in the wrong context. The transaction is currently in '13383916' state. Server Message: Number 5702, Severity 10 Procedure 'sp_bindefault', Line 254: The SQL Server is terminating this process. Client Message: Layer 1, Origin 1, Severity 1, Number 167 ct_cmd_drop(): user api layer: external error: This routine cannot be called because the command structure is in an undefined state.
|