1、SQL Server 2005的sys.database_files有字段is_read_only表示文件是否只读,SQL Server 2000的sysfiles没有这个字段,有没有什么替代的实现方法?
2、SQL Server 2005的sys.fulltext_catalogs有字段data_space_id、is_default分别表示全文目录位于哪个文件组上以及该全文目录是数据库否默认的全文目录,SQL Server 2000的sysfulltextcatalogs没有这两个字段,有没有什么替代的实现方法?

解决方案 »

  1.   

    1 SELECT FILEPROPERTY(file_name,'IsReadOnly')
    2 思考中 
      

  2.   


    ---帮助查的资料
    USE master
    SELECT FILEPROPERTY('master', 'IsPrimaryFile')
      

  3.   

    ...
    在05用sp_helptext得到视图的语句,再到2000里去查
      

  4.   

    select distinct id,object_name(id), si.groupid, sf.groupname
    from sysindexes si, sysfilegroups sf
    where si.groupid=sf.groupid and object_name(id) = 'sysfulltextcatalogs'
      

  5.   

    或者
    declare @id int
    set @id = object_id('sysfulltextcatalogs')
    exec sp_objectfilegroup @id