View list of tables on linked server

DataMiner

Registered User.
Local time
Today, 13:47
Joined
Jul 26, 2001
Messages
336
At long last I've gotten my IT department to set up a link to a remote server. Sure would be nice to be able to view the list of tables on the remote server! The only way I've found to do this so far is by using a system stored procedure:
sp_tables_ex
@table_server = 'DTMFLKSVDB03',
@table_catalog='FnetIntranet',
@table_schema='dbo'

How can I set up a VIEW to return this same information?
 
Use this code:

Code:
select * from <servername>.<databasename>.sys.sysobjects where type ='u'
 
Thanks, just what I needed!
 

Users who are viewing this thread

Back
Top Bottom