Is there a way to query the schema of a table from a stored proc in another database without resorting to dynamic sql? The name of the database would be passed in as a parameter.

有帮助吗?

解决方案

If you pass the name as parameter, you cannot do it without dynamic SQL.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top