$ 0 0 In Linq2SQL you can use:var cmd = DataContext.GetCommand(expression);var sqlQuery = cmd.CommandText;