|
楼主 |
发表于 2009-1-13 02:22:06
|
显示全部楼层
to Hex,还是不行啊,我用的ar
SQL指令是(截取的输出)
DECLARE mi_cursor_ffdb039378876e653e18cb10de5327c0 CURSOR DYNAMIC READ_ONLY FOR SELECT *, birth=datediff(year, birth, getdate()) FROM py_user WHERE (datediff(year,birth,getdate()) between '18' and '35') AND sex = '2' AND marriage = '1' AND grade = 1 ORDER BY id desc OPEN mi_cursor_ffdb039378876e653e18cb10de5327c0 DECLARE @CURSOR AS INT SELECT @CURSOR = CURSOR_HANDLE FROM MASTER.DBO.SYSCURSORS WHERE CURSOR_NAME = 'mi_cursor_ffdb039378876e653e18cb10de5327c0' EXEC SP_CURSORFETCH @CURSOR, 32, 2, 10 EXEC SP_CURSORCLOSE @CURSOR
找不到匹配的数据,本来应该匹配数据库里面100个的列的
然后到SQL再执行上面的命令,显示如下错误:
Msg 615, Level 21, State 1, Line 1
找不到数据库 ID 0,名称 'user_db'。该数据库可能处于离线状态。请等候几分钟,然后重试。 |
|