Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP WITH SQL LIKE QUERY

Status
Not open for further replies.

dmoonme

MIS
Jul 21, 2004
33
US
TableA fields are unc_path and office.

My update query looks like this:

update TableA set office='CRB' where unc_path like '%crb%'

The query doesn't seem to work even though there are records that match this criteria. An example of a record in the unc_path is \\crbA1\MyDir\akde12

Thanks in advance for your help!
 
Hi

Just wanted to add the "%" is what you would use for SQL Server, ORACLE or Sybase. However MS Access like "*".

So note if you are using a passthrough query or ADO then use "%"

Cheers

SK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top