Click here to Skip to main content
15,891,529 members
Home / Discussions / Database
   

Database

 
GeneralRe: Any security check to stop Importing Data from SQL tables into EXCEL Pin
Mike Dimmick21-Sep-04 4:53
Mike Dimmick21-Sep-04 4:53 
GeneralSELECT and NOT IN a dynamic sequence Pin
Vadim Tabakman19-Sep-04 15:27
Vadim Tabakman19-Sep-04 15:27 
GeneralRe: SELECT and NOT IN a dynamic sequence Pin
Mike Ellison19-Sep-04 19:38
Mike Ellison19-Sep-04 19:38 
GeneralRe: SELECT and NOT IN a dynamic sequence Pin
Vadim Tabakman21-Sep-04 14:10
Vadim Tabakman21-Sep-04 14:10 
GeneralRe: SELECT and NOT IN a dynamic sequence Pin
Mike Ellison22-Sep-04 13:16
Mike Ellison22-Sep-04 13:16 
GeneralRe: SELECT and NOT IN a dynamic sequence Pin
Vadim Tabakman22-Sep-04 15:11
Vadim Tabakman22-Sep-04 15:11 
Generalsetting RowStateFilter after updating (ADO.NET/C#) Pin
Hesham Amin17-Sep-04 22:41
Hesham Amin17-Sep-04 22:41 
GeneralDataTable SELECT option Pin
dbetting17-Sep-04 8:06
dbetting17-Sep-04 8:06 
I normally use Oracle and I haven't been able to figure out the appropriate escape characters to allow the SELECT option to work properly for a given situation.

Given the following:
string newValue = "Joe's Place";<br />
string searchValue = newValue.Replace("'",@"\'");<br />
DataRow[] dr = dataTable.Select(displayMember+"='"+searchValue+"'");


newValue is actually a parameter into the method but when it's contents include an apostrophe, I get the error such as Missing operand after 's' operator. The code worked for all situations until I hit an apostrophe so I added the conversion of the apostrophe to what I thought was the appropriate escape sequence {newValue.Replace()}. But it doesn't seem to matter what value is searched, I still get the error.

What should I have done? Are there any other characters I need to be aware of other than the apostrophe?

Thanks
GeneralRe: DataTable SELECT option Pin
Michael Potter17-Sep-04 10:24
Michael Potter17-Sep-04 10:24 
GeneralRe: DataTable SELECT option Pin
dbetting17-Sep-04 16:54
dbetting17-Sep-04 16:54 
QuestionInstalling MSDE on XP Pro? Pin
Dam.NET17-Sep-04 6:22
Dam.NET17-Sep-04 6:22 
AnswerRe: Installing MSDE on XP Pro? Pin
Orcrist17-Sep-04 7:15
Orcrist17-Sep-04 7:15 
GeneralRe: Installing MSDE on XP Pro? Pin
Orcrist17-Sep-04 7:21
Orcrist17-Sep-04 7:21 
GeneralRe: Installing MSDE on XP Pro? Pin
Dam.NET19-Sep-04 8:57
Dam.NET19-Sep-04 8:57 
GeneralRe: Installing MSDE on XP Pro? Pin
Orcrist19-Sep-04 10:42
Orcrist19-Sep-04 10:42 
GeneralRe: Installing MSDE on XP Pro? Pin
Dam.NET19-Sep-04 10:47
Dam.NET19-Sep-04 10:47 
Generaldatagrid with large record Pin
caheo17-Sep-04 5:03
caheo17-Sep-04 5:03 
GeneralPlugin to Enterpriser Manager Pin
cbmdk16-Sep-04 23:21
cbmdk16-Sep-04 23:21 
QuestionHow do i insert a blank value? Pin
xiaowenjie16-Sep-04 17:54
xiaowenjie16-Sep-04 17:54 
AnswerRe: How do i insert a blank value? Pin
Mekong River17-Sep-04 6:32
Mekong River17-Sep-04 6:32 
GeneralRe: How do i insert a blank value? Pin
xiaowenjie17-Sep-04 18:59
xiaowenjie17-Sep-04 18:59 
GeneralRe: How do i insert a blank value? Pin
Mekong River18-Sep-04 3:40
Mekong River18-Sep-04 3:40 
GeneralLocking Database Pin
WinDotNet16-Sep-04 0:53
WinDotNet16-Sep-04 0:53 
GeneralRe: help in simple access query Pin
David Salter16-Sep-04 10:37
David Salter16-Sep-04 10:37 
GeneralRe: help in simple access query Pin
Mekong River16-Sep-04 15:22
Mekong River16-Sep-04 15:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.