|
-
Aug 3rd, 2000, 01:18 PM
#1
Thread Starter
Addicted Member
I am considering the use of ADO instead of DAO because I want to connect to a SQL Server database but I have read a post (with no reply) of someone how could'nt use a "LIKE 'C*'" in a select statement..
Is it because it can't be done like that or it can't be done at all... or was the guy on the right track ?..
I am asking this because I don't want to change everything just to realize at the end that I can't use a LIKE statement...
thanx
-
Aug 3rd, 2000, 01:32 PM
#2
Hyperactive Member
I didn't see that post, but you can use LIKE statements in ADO. I use them with no problem.
-
Aug 3rd, 2000, 01:51 PM
#3
the following sql statement should work with ado also.
select * from tablename where columnname like "ABC%"
(i guess your statement had a "*")
-
Aug 3rd, 2000, 09:25 PM
#4
Guru
Sarun is correct
DAO uses the asterisk ( * ) as the wildcard character
ADO uses the percent ( % ) as the wildcard character
-
Aug 4th, 2000, 01:40 PM
#5
Frenzied Member
Eventually, access will make you use the % sign as well. It's an ANSI standard for SQL wildcards.
-
Aug 7th, 2000, 10:01 PM
#6
Thread Starter
Addicted Member
Thanks for clearing that up people!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|