select name from sysobjects where id=370176

解决方案 »

  1.   

    在建立主键或者唯一索引的时候有重复数据primary key is '370176'
    要建立的主键的第一个字段的值在'370176'有重复,你要根据的建立主键的语句来确定重复的地方,或者:select 主键字段列表
    from tablename
    group by 主键字段列表
    having count(*)>1
    来列出所有重复的主键字段组合
      

  2.   

    select * from syscolumns where id=370176
      

  3.   

    使用dbcc checkident('tablename'),自动重新排列主键、索引
      

  4.   

    我试了 select * from syscolumns where id=370176
      select name from sysobjects where id=370176
    怎么都找不到记录吗?
      

  5.   

    看  zicxc(冒牌邹建 V0.3) 的下次E文的还是不看了(实在是不太看得懂)
      

  6.   

    to zicxc(冒牌邹建 V0.3) :谢谢!但是我又该如何知道到底是那个表、哪个主健产生的错误?
      

  7.   

    use 你维护计划维护的所有数据库:
       select * from syscolumns where id=370176
       select name from sysobjects where id=370176
      

  8.   

    我试了 select * from syscolumns where id=370176
      select name from sysobjects where id=370176
    可是我怎么都找不到这条记录吗?
      

  9.   

    我是sql server 2000企业版 sp3