B
Bobby Edward
Using latest version of asp.net and mysql. Using XSD datasets and dataset
designer in Visual Studio.
Created a tableadapter query with some params in the WHERE clause...
SELECT projects.ProjectId, projects.LocationCountyId,
counties.StateIdFROM counties INNER JOIN projects ON
counties.CountyId = projects.LocationCountyIdWHERE
(projects.LocationCountyId IN countyids)) OR
(counties.StateId IN stateids))
The idea is that I would like to send 1 or MORE countyids or stateids to the
query. For example:
WHERE (projects.LocationCountyId IN ('33','41','44','55')) OR
(counties.StateId IN ('10','41','32'))
So, I defined countyids and stateids as string params. If I hard code some
test strings in the query it works fine, but if I preview the query in the
XSD designer or use code to try to retrieve values it doesn't work.
Any ideas here? Am I doing it correctly?
designer in Visual Studio.
Created a tableadapter query with some params in the WHERE clause...
SELECT projects.ProjectId, projects.LocationCountyId,
counties.StateIdFROM counties INNER JOIN projects ON
counties.CountyId = projects.LocationCountyIdWHERE
(projects.LocationCountyId IN countyids)) OR
(counties.StateId IN stateids))
The idea is that I would like to send 1 or MORE countyids or stateids to the
query. For example:
WHERE (projects.LocationCountyId IN ('33','41','44','55')) OR
(counties.StateId IN ('10','41','32'))
So, I defined countyids and stateids as string params. If I hard code some
test strings in the query it works fine, but if I preview the query in the
XSD designer or use code to try to retrieve values it doesn't work.
Any ideas here? Am I doing it correctly?