Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingest the source of sql server2008 failed #10455

Open
zhaoyi1995 opened this issue May 8, 2024 · 0 comments
Open

Ingest the source of sql server2008 failed #10455

zhaoyi1995 opened this issue May 8, 2024 · 0 comments

Comments

@zhaoyi1995
Copy link

zhaoyi1995 commented May 8, 2024

The error is:
"Failed to list jobs due to error (pytds.tds_base.ProgrammingError) ("\u5bf9\u8c61\u540d 'sys.sql_expression_dependencies' \u65e0\u6548\u3002", None)\n[SQL: \n SELECT DISTINCT\n coalesce(lower(referenced_database_name), db_name()) AS db,\n referenced_schema_name AS [schema],\n referenced_entity_name AS [name],\n o1.type_desc AS [type]\n FROM sys.sql_expression_dependencies AS sed\n INNER JOIN sys.objects AS o ON sed.referencing_id = o.object_id\n left join sys.objects o1 on sed.referenced_id = o1.object_id\n WHERE referencing_id = OBJECT_ID(N'xxx')\n AND referenced_schema_name is not null\n AND o1.type_desc in ('TABLE_TYPE', 'VIEW', 'SQL_STORED_PROCEDURE', 'USER_TABLE')\n ]\n(Background on this error at: https://sqlalche.me/e/14/f405)"

SQL server2008 is an old version that does not include sys.sql_expression_dependencies,so I cannot execute it:

USE 'DATA_DB_NAME'
GRANT VIEW DEFINITION TO 'USERNAME'
GRANT SELECT ON OBJECT::sys.sql_expression_dependencies TO 'USERNAME'

This is an old project and I dare not upgrade. What should I do?
Requesting help, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant