The following sp_columns_ex stored procedure used to return the linked server table structure details.
EXEC sp_columns_ex ‘linkedserver_Name’, ‘table_name’, ‘Schema_name’
EXEC sp_columns_ex ‘prod_lnk’, ’employee’, ‘Humaresources’
The following sp_columns_ex stored procedure used to return the linked server table structure details.
EXEC sp_columns_ex ‘linkedserver_Name’, ‘table_name’, ‘Schema_name’
EXEC sp_columns_ex ‘prod_lnk’, ’employee’, ‘Humaresources’
Use Database_name
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = ‘Table_name’