If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Trying to find a single quote (') within text
We are using an application called MRI on top of MS SQL 2000 database. I am
trying to find a quote character within a text field using like '%'%', but get the following error message "Error -241721908: 0: Command text was not set for the command object. (proc: rdoExecSql". How do I find a single quote in a text field using like? Ken |
#2
|
|||
|
|||
Trying to find a single quote (') within text
I assume you use 2 single quotes within single quotes
LIKE '%''%' "Ken King"wrote: We are using an application called MRI on top of MS SQL 2000 database. I am trying to find a quote character within a text field using like '%'%', but get the following error message "Error -241721908: 0: Command text was not set for the command object. (proc: rdoExecSql". How do I find a single quote in a text field using like? Ken |
#3
|
|||
|
|||
Trying to find a single quote (') within text
Ken King wrote:
We are using an application called MRI on top of MS SQL 2000 database. I am trying to find a quote character within a text field using like '%'%', but get the following error message "Error -241721908: 0: Command text was not set for the command object. (proc: rdoExecSql". How do I find a single quote in a text field using like? Ken Look for CHR(39) (if that's an option). -- Smartin |
#4
|
|||
|
|||
Trying to find a single quote (') within text
USE pubs
GO SELECT au_lname FROM authors WHERE au_lname LIKE '%''%' ORDER by au_lname GO returns O'Leary "Gary Walter" wrote: I assume you use 2 single quotes within single quotes LIKE '%''%' "Ken King"wrote: We are using an application called MRI on top of MS SQL 2000 database. I am trying to find a quote character within a text field using like '%'%', but get the following error message "Error -241721908: 0: Command text was not set for the command object. (proc: rdoExecSql". How do I find a single quote in a text field using like? Ken |
Thread Tools | |
Display Modes | |
|
|