Click here to Skip to main content
15,914,163 members
Home / Discussions / Database
   

Database

 
GeneralRe: default value Pin
TehMedic26-Sep-04 23:08
TehMedic26-Sep-04 23:08 
Generalchanging RowState of DataRow Pin
TehMedic20-Sep-04 23:36
TehMedic20-Sep-04 23:36 
GeneralPrinting from .Net Reporting Services Pin
MicSky20-Sep-04 20:03
MicSky20-Sep-04 20:03 
GeneralRe: Printing from .Net Reporting Services Pin
sreejith ss nair20-Sep-04 20:14
sreejith ss nair20-Sep-04 20:14 
GeneralRe: Printing from .Net Reporting Services Pin
MicSky20-Sep-04 21:20
MicSky20-Sep-04 21:20 
GeneralANN: VistaDB 2.0 (RC3) data engine for .NET now available for download Pin
vistasoftware20-Sep-04 14:20
vistasoftware20-Sep-04 14:20 
GeneralRe: ANN: VistaDB 2.0 (RC3) data engine for .NET now available for download Pin
Matt Newman22-Sep-04 10:57
Matt Newman22-Sep-04 10:57 
GeneralRe: ANN: VistaDB 2.0 (RC3) data engine for .NET now available for download Pin
vistasoftware22-Sep-04 11:47
vistasoftware22-Sep-04 11:47 
GeneralRe: ANN: VistaDB 2.0 (RC3) data engine for .NET now available for download Pin
Colin Angus Mackay22-Sep-04 12:12
Colin Angus Mackay22-Sep-04 12:12 
GeneralClickety Pin
Colin Angus Mackay23-Sep-04 11:16
Colin Angus Mackay23-Sep-04 11:16 
GeneralOLE DB::IDBProperties -> Connection String [solved] Pin
Jörgen Sigvardsson20-Sep-04 8:51
Jörgen Sigvardsson20-Sep-04 8:51 
GeneralAny security check to stop Importing Data from SQL tables into EXCEL Pin
BSRK19-Sep-04 19:50
BSRK19-Sep-04 19:50 
GeneralRe: Any security check to stop Importing Data from SQL tables into EXCEL Pin
Steven Campbell20-Sep-04 7:32
Steven Campbell20-Sep-04 7:32 
GeneralRe: Any security check to stop Importing Data from SQL tables into EXCEL Pin
BSRK20-Sep-04 19:16
BSRK20-Sep-04 19:16 
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 

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.