I was hoping that within the WebMatrix (C#.net) environment (using SQL Server Compact) that there was a way to search all tables and fields for a value. I have a bunch (like 100) of tables, connected to via WebMatrix and I am trying to look for a table that holds some information I need.
I have been here: http://blogs.thesitedoctor.co.uk/tim/2007/11/02/How+To+Search+Every+Table+And+Field+In+A+SQL+Server+Database.aspx
And here, on stackoverflow: search all tables, all columns for a specific value SQL Server
As well as here: How do I find a value anywhere in a SQL Server Database?
Unfortunately I am not seeing how to implement these methods in my current environment, but I realize there may not really be a way to do what I am asking.
Whether there is or there isn't a way to do what I'm asking, I would at least like to know, so I can look for another method.
Thanks!
-----------------------------SQL SubQuery That Works In SQL CE-----------------------------
SELECT * FROM UserProfile JOIN webpages_UsersInRoles ON UserProfile.UserID = webpages_UsersInRoles.UserId WHERE (RoleId <> 6) AND Email NOT IN (SELECT Email FROM UserProfile JOIN webpages_UsersInRoles ON UserProfile.UserID = webpages_UsersInRoles.UserId WHERE RoleId = 6) ORDER BY Email