解决方案 »

  1.   

    分区的话,object的命名肯定会有类似性,从sysobject中查找一下是否有类似名字的表格,数据库等
      

  2.   

    怎么查询呢,能给出具体的sql吗
      

  3.   

    怎么查询呢,能给出具体的sql吗
    出类型:
    select distinct type from sys.sysobjects查找表格:
    select * from sys.sysobjects
    where type = 'U' --类型:表
    and name '%给入名称%'
      

  4.   

    怎么查询呢,能给出具体的sql吗
    这种方法只适用于查询数据库表,函数,存储过程等,但是用于表分区的函数和方案不行
      

  5.   

    怎么查询呢,能给出具体的sql吗
    出类型:
    select distinct type from sys.sysobjects查找表格:
    select * from sys.sysobjects
    where type = 'U' --类型:表
    and name '%给入名称%'你给的只能查看表,函数等,不过参照你的思路弄出来了,sql如下:
    select * from sys.partition_functions where type='R' and name like '%XXX%'