473,480 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Visual Studio VB 2010 SQL/MySQL/Access queries

2 New Member
I have found that when I connect my VB application to an Access database and perform the query: LIKE ? + %

That special LIKE query doesn't work the same way with MySQL or SQL. I've played around in MySQL and found that: LIKE '%' & ? & '%' does just about the same thing, and actually works a little better than the access query above.

my question is, does anyone know of a good (easy) reference guide that will show queries and what their format would be in different databases? I am constantly working in one of the 3 different DB's listed above and I'm always having difficulty working with the queries for each.
Aug 10 '12 #1
1 3130
ariful alam
185 New Member
MSSQL server or MySQL server uses % as wild card search.
like -> Like '%' + 'your search text' + '%'

MS Access uses * as wild card search. moreover
like -> Like '*' & 'your search text' & '*'

NOTE:
You should use each Database systems help section for better knowledge on LIKE operator. Just open those help system and type 'LIKE' in search box. Those will show you the help on LIKE with examples.
Aug 11 '12 #2

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

Similar topics

4
3885
by: jabailo | last post by:
These guys have it going on. They actually use design ideas that Microsoft employees can drool upon. Visual Studio 2010 Concept IDE http://www.codeproject.com/csharp/Concept_IDE.asp "Like...
1
2234
by: Mantorok | last post by:
Hi all Does anyone here have to use VS on a machine that has "on-access" virus scanning? We have Read/Write scanning turned on on our desktops and we're pretty sure that it is killing VS and...
18
9099
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
1
3508
by: anjee | last post by:
Hello all, We are in the process of rewriting a large application that uses an Access 2003 backend database. Unfortunately we will be building and releasing the application in phases which means...
1
1829
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Visual Studio 2010 and .NET Framework 4.0 Overview URL:http://msdn.microsoft.com/en-us/vstudio/products/cc948977.aspx Regards Kerem -- ----------------------- Beste Grüsse / Best regards...
0
2062
by: mgarg005SSRS | last post by:
My requirement is to create multiple reports (.rdlc) and show them using single report viewer control. A: User selects a report from drop down list. B: Depending on report name a report has to be...
0
1889
by: garbmail10 | last post by:
Hallo to all I'm using visual studio 2010 c# on windows 7 In a program i use SpeechLib (located in C:\Windows\System32\Speech\Common\sapi.dll) with SpVoice voice = new SpVoice();...
0
1717
by: Jourdan | last post by:
I am creating a web application backed by a SQL database in visual studio 2010. I have created a form with a dropdownlists for date and category as well as a textbox to perform a key word search. The...
0
7037
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
6904
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
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7076
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
6886
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...
1
4768
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...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.