Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
具有动态SQL和SSRS的存储过程_Sql_Sql Server_Stored Procedures_Reporting Services - Fatal编程技术网

具有动态SQL和SSRS的存储过程

具有动态SQL和SSRS的存储过程,sql,sql-server,stored-procedures,reporting-services,Sql,Sql Server,Stored Procedures,Reporting Services,我正在编写SSRS报告,并使用存储过程获取所需的数据集。如您所知,如果使用动态SQL,数据字段不能在SSR中列出。 我也不能使用temp table或table变量返回数据集,因为列名也是动态的 有谁能提供更好的解决方案吗 非常感谢你

我正在编写SSRS报告,并使用存储过程获取所需的数据集。如您所知,如果使用动态SQL,数据字段不能在SSR中列出。 我也不能使用temp table或table变量返回数据集,因为列名也是动态的

有谁能提供更好的解决方案吗

非常感谢你