select [name]as ColumnName from syscolumns where id in(SELECT id FROM sysobjects where [name]='AAA') 但是我程序中所用到的表前面都有dbo.作为前缀 ...
直接使用"select * from tableName"时,tableName不能提示,查询时说“对象名 'yonghubiao' 无效。” 使用"select * from dbMain.dbo.tableName"没有问题,也能提示也能查询 ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果