Given an ODBC connection string, I'm trying to determine whether this connection supports cross joining.
Currently I use the following code to determine the supported join operators:
(SupportedJoinOperators)connection.GetSchema("DataSourceInformation").Rows[0]["SupportedJoinOperators"]
But this only gives me Inner, Left, Right and Full joins.
For example, if a connection string uses the microsoft text driver (.txt .csv), the supported join operators are left and right, and the driver actually doesn't support the cross join operator (fails with a message of incorrect syntax).
Using workarounds doesn't guarantee a correct answer, as I gather from this link.
I also thought of trying a lower level, like using Pinvoke with the ODBC API like SqlGetInfo
or SqlGetFunctions
but it seems like a dead end.
Any help will be greatly appreciated!