testIS3.sql
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:0k
源码类别:

SQL Server

开发平台:

Unix_Linux

  1. ALTER SCHEMA AUTHORIZATION INFORMATION_SCHEMA
  2. CREATE VIEW COLUMNS
  3.        AS ( SELECT
  4.           COLNAME, UNTABID , COLNO, COLTYPE, DEFNULL
  5.        FROM  DEFINITION_SCHEMA.SYSCOLUMNS
  6.        WHERE UNTABID
  7.              IN
  8.               ( SELECT UNTABID
  9.                 FROM   DEFINITION_SCHEMA.SYSCOLAUTH          
  10.                 WHERE  GRANTEE
  11.                        IN ( 'PUBLIC' , USER )
  12.               )
  13.        )
  14. GRANT SELECT ON COLUMNS                 TO PUBLIC