Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 database

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-25 : 17:14:58
prakash writes "can i find search for a text through out the database with a single select query?"

nr
SQLTeam MVY

12543 Posts

Posted - 2001-11-25 : 20:24:58
You can bcp the all the tables out into a directory or create dsql query statements to do the search on each table in turn - maybe returning tablename, column and primary key values for each success (if you have PKs).

Strange that a lot of people semm to be asking this question recently.

In a single select it would have to use derived tables or a union. I would suspect that this might get to the query size limit.


==========================================
Cursors are useful if you don't know sql.
Beer is not cold and it isn't fizzy.

Edited by - nr on 11/25/2001 20:26:22
Go to Top of Page
   

- Advertisement -