if exists (select 1 from sysobjects where name = 'sysproperties'and xtype = 'V')begin DROP VIEW syspropertiesend GO CREATE VIEW syspropertiesAS SELECT class AS id,Minor_id AS sMallid,* from sys.extended_properties -------在sql server 2005中获取表…
--office 2003--如果接受数据导入的表已经存在insert into DemoTable select * from OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Excel 5.0;HDR=YES;DATABASE=d:/Demo.xls',sheet1$)--如果导入数据并生成表select * into DemoTable from OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Excel 5.0;HDR=YES;D…