Z zwhc Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-14 #1 好象是解决问题了,谢谢。 还没最后验证。 http://www.delphibbs.com/delphibbs/DispQ.asp?LID=335842
N netwind Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-14 #2 老猫不会认为我是作弊吧? 不过顺便说一下,那个方法如果在经常用SELECT INTO 、BCP或发生其他大的ROLLBACK 操作时会发生问题。解决也很简单,DBCC一下就可以了。
Z zwhc Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-14 #3 哈,没最后通过这 90 分你是拿不走的。 不过应该差不多了。
Z zwhc Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-15 #4 OK 了,不要 syssegments declare @tn varchar(100) declare @nn int declare @cc char (10) select @tn ="table1" SELECT @nn = max(rows) FROM sysobjects O, sysindexes I WHERE O.id=I.id AND I.indid IN (0,1) AND O.type !="S" AND O.name = @tn select @nn
OK 了,不要 syssegments declare @tn varchar(100) declare @nn int declare @cc char (10) select @tn ="table1" SELECT @nn = max(rows) FROM sysobjects O, sysindexes I WHERE O.id=I.id AND I.indid IN (0,1) AND O.type !="S" AND O.name = @tn select @nn