Hi All
I am creating a search builder for my VB.Net database application. The search builder currently produces a SQL statement using Inner Joins like:
SELECT Customers.*
FROM Customers
INNER JOIN Jobs
ON Customers.CustomerID = Jobs.CustomerID
WHERE Customers.CustomerName Like 'A%' AND Jobs.JobNameID = 1
This would be fine and I could send this to SQL Server and get back the required results. However I'd like to do this completly disconneced from SQL just using the dataset the application runs on which is an exact copy of the database on the server (relations and foreign keys included).
Is there a way to do this??
or do I have to filter each "inner joined" datatable/dataview first and then get the parent rows for each row left? There has to be a better way... I hope )
Any ideas, help would be very much appreciated.
Thank you
Nells
I am creating a search builder for my VB.Net database application. The search builder currently produces a SQL statement using Inner Joins like:
SELECT Customers.*
FROM Customers
INNER JOIN Jobs
ON Customers.CustomerID = Jobs.CustomerID
WHERE Customers.CustomerName Like 'A%' AND Jobs.JobNameID = 1
This would be fine and I could send this to SQL Server and get back the required results. However I'd like to do this completly disconneced from SQL just using the dataset the application runs on which is an exact copy of the database on the server (relations and foreign keys included).
Is there a way to do this??
or do I have to filter each "inner joined" datatable/dataview first and then get the parent rows for each row left? There has to be a better way... I hope )
Any ideas, help would be very much appreciated.
Thank you
Nells