NathanGriffiths
Programmer
How do I reference Information_Schema in a database on a linked server?
If I use
SELECT * FROM Server.Database.Information_Schema.Tables
for example I get the error:
Server: Msg 7314, Level 16, State 1, Line 1
OLE DB provider 'Server' does not contain table '"Database"."information_Schema"."Tables"'. The table either does not exist or the current user does not have permissions on that table.
I can query the sysobjects table but I would rather use the the information_schema instead if possible.
thanks,
Nathan
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Want to get a good response to your question? Read this FAQ! -> faq183-874
If I use
SELECT * FROM Server.Database.Information_Schema.Tables
for example I get the error:
Server: Msg 7314, Level 16, State 1, Line 1
OLE DB provider 'Server' does not contain table '"Database"."information_Schema"."Tables"'. The table either does not exist or the current user does not have permissions on that table.
I can query the sysobjects table but I would rather use the the information_schema instead if possible.
thanks,
Nathan
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Want to get a good response to your question? Read this FAQ! -> faq183-874