Microsoft
Software
Hardware
Network
Question : What's Wrong With This SQL Query?
I'm trying to find all company names that contain an apostrophe, When I enter the following SQL in an Access queary:
Select * from [employers] where [company] like '*''*'
it works fine, retuning 200 rows. But I can't seem to find the correct syntax for use with OLEDB programmatically:
Dim qString As String = "Select * from [employers] where [company] like '*''*'"
cmd2 = New OleDbCommand(qString, DB)
rdr2 = cmd2.ExecuteReader
If rdr2.HasRows Then
MsgBox("has rows")
End If
No rows are returned. What's wrong with my syntax?
Answer : What's Wrong With This SQL Query?
Keep in mind that there are two apostrophes in the middle
1:
SELECT * FROM [employers] WHERE [Company] Like '%''%'
Random Solutions
Exchange Calendar
Debian (Xebian) Linux FBSet: How to adjust image?
RAID1 in MAX OSx
Anyone used OEM for monitoring PeopleSoft application and peoplesoft databases?
Installing RPM on Linux
Create folder / Start Menu Programs Shortcut / Set permissions
ASP.NET unable to cast object of type
easy transfer software xp to xp
WiFi / wireless connection dropped & laptops need to be rebooted to reconnect to 2Wire broadband modem : Event id 5005
xp sp2 clients wont log or ping server 2003