标签: tsql
执行存储过程-通过添加WITH RESULT SETS语句使用EXECUTE命令。
该怎么写?
答案 0 :(得分:2)
WITH execute_option
CREATE OR ALTER PROCEDURE dbo.a AS SELECT Name FROM sys.tables GO EXEC dbo.a WITH RESULT SETS ( ( Name sysname ) )