--Script to check Link server name in View / SP SELECT |
|||
Distinct | |||
referenced_Server_name As LinkedServerName, | |||
referenced_schema_name AS LinkedServerSchema, | |||
referenced_database_name AS LinkedServerDB, | |||
referenced_entity_name As LinkedServerTable, | |||
OBJECT_NAME (referencing_id) AS ObjectUsingLinkedServer | |||
FROM sys.sql_expression_dependencies | |||
WHERE referenced_database_name IS NOT NULL | |||
And referenced_Server_name in
('YourLinkServerName') ---Script to check Link server in SQL Server 2005
|
Wednesday, 25 October 2017
Script to check Link server name in View and Store Procedure
Subscribe to:
Post Comments (Atom)
How to find table row count?
--Use below query to find table row count select so.name,sp.rows from sys.objects so inner join sys.partitions sp on so.object_id = sp.obj...
-
Warning: the following job steps cannot be reached with the current job step flow logic If you get this error, I would guess that you hav...
-
Data Type SQL Server SSIS SSIS OLE DB ADO.NET Variables Pipeline Buffer bigint Int64 DT_I8 LARGE_INTEGER I...
-
SELECT [UserType] = CASE princ.[type] WHEN 'S' THEN 'SQL User' WHEN 'U' THEN 'Windows...
No comments:
Post a Comment