I use the LINQ DataContext's Log property to send the generatated SQL to the debug window. (There is a post by Kris Vandermotten about that). That works fine, except that the ouputted SQL parameters are some SQL comments, and so I can't run the query in Management Studio. Here's an example:
SELECT * FROM table WHERE id IN (@p0,@p1,@p2)
-- @p0: Input Int (Size = 0; Prec = 0; Scale = 0) [5]
-- @p1: Input Int (Size = 0; Prec = 0; Scale = 0) [1]
-- @p2: Input Int (Size = 0; Prec = 0; Scale = 0) [13189086]
So, is there any tool that transforms this text into a valid SQL?

DECLAREstatements included, similar to the LINQPad output in my response?