Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SQL Server 2005

Explorer ,
Nov 26, 2008 Nov 26, 2008
Can anyone tell me how to get this working on multiple databases?

I like to have a general search on my site, but my sites DB has numerous databases and tables. can I search them all at once somehow?

I can see the full text search icon under the Management node in management studio, but it will only let me refresh it.

I've also used select fulltextserviceproperty('isfulltextinstalled') and it returns '1'.

Thankyou
TOPICS
Database access
412
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2008 Nov 26, 2008
LATEST
matthisco wrote:
> Can anyone tell me how to get this working on multiple databases?
>
> I like to have a general search on my site, but my sites DB has numerous
> databases and tables. can I search them all at once somehow?

Very, very crude solution:

SELECT *
FROM db1.table1
WHERE name like '%keyword%'
UNION
SELECT *
FROM db1.table2
WHERE name like '%keyword%'
....
UNION
SELECT *
FROM db2.table1
WHERE name like '%keyword%'
....

--
Mack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources