Recover data using Dynamic Query and Linq to SQL


Hi I have a really complicated dynamic query that i want to use to retrieve data from the database I am working in .net 3.5 sql server 2008

i created a stored procedure that accepts a varchar(max) as input parameter and does

execute (@SqlQuery)

it executes but does not return anything

I really would like to use LINQ as all my project is implemented using linq

Any Idea how to do it

what is the problem?

If you want to execute raw SQL via LINQ, you should look into the method ExecuteQuery<T>.