开发者

Easy method to remove unnecessary tables/dependencies from a large complex join

I have a large complex set of joins in an sql statement (rough开发者_StackOverflow中文版ly getting 250 fields and using about 80 joins).

I would like to split this large cumbersome query into some smaller ones, say returning only 10 fields each. However, the task of removing all of the joins (which are unnecessary for those 10 fields) is massively time consuming.

Does anyone know of a clever way I could do this in SQL Server? Or is there another tool on the market I could use?

As ever, thanks in advance.


I feel for you. And to my knowledge there's no such tool. Yet it's a good candidate for RedGate Refactor.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜