473,398 Members | 2,125 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,398 software developers and data experts.

query in Oledb to search for numbers

VMI
In Access, I can create a query like "select * from myTable where Name like
'*Joe #*' " and it'll return records like ("Bob Joe 1", "Rick Joe 122",
etc...). What's the equivalent to that in a query that's being run using
OleDB?

Thanks.
Nov 16 '05 #1
2 1587
VMI,

If you are using OleDb to access the Access database, then the query
would be the same. OleDb allows for different providers, each of which has
its own query language. If you change the provider and the underlying data
format, then the query could change as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VMI" <vo******@yahoo.com> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
In Access, I can create a query like "select * from myTable where Name
like '*Joe #*' " and it'll return records like ("Bob Joe 1", "Rick Joe
122", etc...). What's the equivalent to that in a query that's being run
using OleDB?

Thanks.

Nov 16 '05 #2
VMI
But the '*' in OleDB is not represented the same way as in Access. If I want
to use wildwards with OleDB, then I need to use '%' (the '*' doesn't work).
Maybe the same thing's happening with the '#' character. Also, i still
didn't understand the part of the provider that you mentioned.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
VMI,

If you are using OleDb to access the Access database, then the query
would be the same. OleDb allows for different providers, each of which
has its own query language. If you change the provider and the underlying
data format, then the query could change as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VMI" <vo******@yahoo.com> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
In Access, I can create a query like "select * from myTable where Name
like '*Joe #*' " and it'll return records like ("Bob Joe 1", "Rick Joe
122", etc...). What's the equivalent to that in a query that's being run
using OleDB?

Thanks.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Frustrated | last post by:
This is the error that I get: Operation must use an updateable query. It worked previously before I installed Jet 4.0 SP 8 b/c Access 2003 requested it. Database is in Access 2002 format. ...
14
by: signaturefactory | last post by:
I am trying the following query in and oleDbCommand: SELECT PartLocations.LocationName, Sum(PartsJournal.Quantity) AS SumOfQuantity, PartsJournal.PartsLotNumber FROM PartLocations INNER JOIN...
13
by: Maxi | last post by:
I have a table (Table name : Lotto) with 23 fields (D_No, DrawDate, P1, P2,.....P21) and it has draw results from 1st Sep 2004 till date. I have another table (Table name : Check) with 15 fields...
2
by: Jorge Varona | last post by:
Greetings, I am having a difficult time trying to get my index server query to work. Here's the code: // create a connection object and command object, to connect the Index Server ...
17
by: Michael C# | last post by:
Question - I keep getting the above error when I try to run an INSERT query against an Access database. I'm running XP Professional and VS.NET 2003. I run SELECT queries from ASP.NET against it...
18
by: Wim | last post by:
Hi, I would like to make and put a query in my database by VB.NET code. Is this possible? Thanks for your help, wim
5
by: Art | last post by:
Hi, Can anyone point me to an example of how I would execute a query I've created in an Access DB. I've copied the SQL down to my VB.net application and that works fine, but it's ugly. I'd like...
4
by: darrel | last post by:
I'm still struggling to find out why I keep getting Invalid object name 'monkey'. errors. Below is my try/catch statement. Note the first query is trying to delete a record in the table...
5
atljpe
by: atljpe | last post by:
In Excel: My query can only be refreshed if your using z: as your drive header. I want to change it so anyone can refresh this query wether they're using x, y, or z for their drive header: The...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.