By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,481 Members | 1,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,481 IT Pros & Developers. It's quick & easy.

RODBC - LIKE Operator From R to SQL Server

P: 28
Good Afternoon Pro's,

I would have submitted this question in the R group but didn't see one.

I am trying to connect to SQL Server from R with the RODBC Package. In my SQLQuery line I'd like to user a LIKE operator but SQL Server doesn't recognize my syntax. How is the LIKE operator written in R when connecting to SQL Server?

Thanks,

Here is the script.

Expand|Select|Wrap|Line Numbers
  1. dataset <- sqlQuery(dbhandle, 'SELECT * FROM table WHERE Name LIKE '%Mike%'')
  2.  
Aug 24 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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