1.获取数据库中所有用户表的名称
select * from sysobjects where xtype='U'
2.获取表中所有字段的名称
select name from syscolumns where id=object_id('tablename')
3.获取所有表的信息
Select TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE= 'BASE TABLE'
1.获取数据库中所有用户表的名称
select * from sysobjects where xtype='U'
2.获取表中所有字段的名称
select name from syscolumns where id=object_id('tablename')
3.获取所有表的信息
Select TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE= 'BASE TABLE'