开发者

How do I use Varbinary(64) as a parameter in SQL Server Reporting Services?

I want to write a report using SQL Server Reporting Services. I want a plan_handle (which is varbinary(64) ) from the dynamic management view sys.dm_exec_query_stats to be a parameter in another开发者_Go百科 report.

But SQL Server Reporting Services doesn't support this type (varbinary(64)) very well. Looking for solutions, workarounds etc...


I think I'm going to go with strings out of the db and strings into the db. Strings out will look something like:

[Plan Handle] = '0x' + cast('' as xml).value('xs:hexBinary(sql:column("plan_handle") )', 'varchar(max)')

Strings going in will be handled with dynamic sql (build a varbinary literal into the query).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜