473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Search Entire database for String???

9
Is there an easy way to search all tables using a string as search criteria.

I have started writting a heap of nested for loops, getting table defs and fields however it is becoming a little bit of a pain.

Is there some kind of select statement one might be able to write in SQL that will search all tables and all fields.

I would ideally like to go through the database searching for say 'EXT2' and then display the entire row in the table where it is located, with possibilities of more than one result.

Any ideas greatly appreaciated.
Jan 31 '07 #1
4 3128
Killer42
8,435 Expert 8TB
I'd suggest you post this again in the Access forum. (I'm assuming it's Access you're referring to).

However, your nested-loop technique may turn out to be the best way to go. I'm not aware of any sort of all-tables or all-fields database syntax (apart from Select * of course).

It might be a good idea to fill in some more detail on your situation, though. What VB version, what database product, etc. Of course, a good generic solution would be largely independent of any specific DBMS.
Feb 1 '07 #2
willakawill
1,646 1GB
The only thing I can think of is a union query with an OR clause for every field in each table
Feb 1 '07 #3
Killer42
8,435 Expert 8TB
The only thing I can think of is a union query with an OR clause for every field in each table
Yeah, but doesn't UNION insist that the fields from each table must be the same?
Feb 1 '07 #4
Killer42
8,435 Expert 8TB
I wonder whether automation might help. Because I notice that if you do Edit | Find while browsing an Access table, you can choose to search the field or the whole table. Perhaps automation would provide a way into this function.
Feb 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: disaia | last post by:
2 problems: Example: If a person types in a part number into Yahoo: 1. Is there a way for Yahoo to list your web site as one of the results. 2. If the user clicks on your link, can your web...
2
by: Ryan | last post by:
I'm looking for a stored procedure (or query) to search an entire database for a specific string value and replace it with another. I'm sure I saw an SP for this a while back by someone, but cannot...
1
by: robboll | last post by:
Using MS Access 2003 I am looking for a function that will search the entire Tables Collection for a specific string in text or memo fields. For example if I enter "widget" it interrogates the...
60
by: Julie | last post by:
What is the *fastest* way in .NET to search large on-disk text files (100+ MB) for a given string. The files are unindexed and unsorted, and for the purposes of my immediate requirements, can't...
2
by: wilco | last post by:
hello, can any one tell me how to create a stored procedure that is beable to search a table, or more table's and can make use of wildcards? i just made somthing like this,: SELECT * FROM...
7
by: David Lozzi | last post by:
I need to support multiple keyword search, not boolean searchs, just simple searches, i.e. "marhsall ma". How is this done? Do I send the entire search string to the Proc? How do I deal with it...
5
by: Martien van Wanrooij | last post by:
I have been using phpdig in some websites but now I stored a lot of larger texts into a mysql database. In the phpdig search engine, when you entered a search word, the page where the search word...
1
by: atl10spro | last post by:
Hello Everyone, I am new to MS Access and although I have created several different databases I lack the VB knowledge to code a search function. I am turning to your expertise for assistance. ...
2
by: raamay | last post by:
i have seen various tutorials on how to search a database but havent found one which teaches how to search a word or a string anywhere in a database. Well, a user may type 'hel' in the search box and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.