Hi DW,
I'm experiencing a strange behaviour using the datalists to execute some custom SQL. I'm executing the following SQL
SELECT
[UserGroups].*, [UserGroupUsers].GroupID
FROM
[UserGroups]
LEFT JOIN [UserGroupUsers] ON [UserGroups].ID = [UserGroupUsers].GroupIDWHERE
( [UserGroups].UserID = 1636 OR [UserGroupUsers].UserID = 1636 )
AND [UserGroups].Deleted = 0ORDER BY
[UserGroups].[ID] ASC
Executing this statement through SMSS works just fine, and returns me the results i expect. Executing it through the datalist, i simply get a blank page.
The weird thing is, that if i remove the join statement
SELECT
[UserGroups].*
FROM
[UserGroups]WHERE
([UserGroups].UserID = 1636
AND [UserGroups].Deleted = 0ORDER BY
[UserGroups].[ID] ASC
Everything works, and it returns me the results i expect. Any ideas what this could be?
best regards.
Jonas