Here is another option:
EXEC LinkedServer.db.sys.sp_help 'dbo.MyTable'
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
can someone please suggest how I can get the schema of a source table along with constraints while I only have access to source table using linked server only.
thanks in advance..
Here is another option:
EXEC LinkedServer.db.sys.sp_help 'dbo.MyTable'
SELECT SCHEMA_NAME(schema_id) AS Schema_Name, name AS Table_Name
FROM [LINKED_SERVER_NAME].[DATABASE_NAME].sys.tables;