Click here to Skip to main content
16,005,178 members
Home / Discussions / C#
   

C#

 
Questionadding data from textbox in to a datagrid? Pin
nigel200019-Jan-08 5:39
nigel200019-Jan-08 5:39 
AnswerRe: adding data from textbox in to a datagrid? Pin
Paul Conrad19-Jan-08 7:20
professionalPaul Conrad19-Jan-08 7:20 
AnswerRe: adding data from textbox in to a datagrid? Pin
Muhammad Shahid Farooq19-Jan-08 7:55
professionalMuhammad Shahid Farooq19-Jan-08 7:55 
GeneralRe: adding data from textbox in to a datagrid? Pin
Paul Conrad19-Jan-08 11:42
professionalPaul Conrad19-Jan-08 11:42 
GeneralRe: adding data from textbox in to a datagrid? Pin
nigel200019-Jan-08 22:34
nigel200019-Jan-08 22:34 
QuestionDisplaying the output of one window form in another window form Pin
Ofori Boadu19-Jan-08 4:15
Ofori Boadu19-Jan-08 4:15 
GeneralRe: Displaying the output of one window form in another window form Pin
Paul Conrad19-Jan-08 7:21
professionalPaul Conrad19-Jan-08 7:21 
GeneralConcatting 2 fields in SQL from 2 tables Pin
Gareth H19-Jan-08 4:01
Gareth H19-Jan-08 4:01 
Hi,

I am trying to select from two tables and concat two values. Thus, i should get a result of "324324234, gareth111".

SQL is below as well as the error.

SELECT UNet_Engineer.EngineerId + ', ' + UNet_Login.Username FROM UNet_Engineer, UNet_Login WHERE UNet_Engineer.EngineerId=UNet_Login.EngineerId;

DbConnection.ExecuteSelect; Exception: System.Data.OleDb.OleDbException: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.<br />
Data type mismatch in criteria expression.<br />
   at System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)<br />
   at System.Data.OleDb.OleDbDataReader.GetRowDataFromHandle()<br />
   at System.Data.OleDb.OleDbDataReader.GetValueBinding(MetaData info)<br />
   at System.Data.OleDb.OleDbDataReader.GetValues(Object[] values)<br />
   at System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues(Object[] values)<br />
   at System.Data.ProviderBase.SchemaMapping.LoadDataRow()<br />
   at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)<br />
   at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)<br />
   at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)<br />
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)<br />
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)<br />
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)<br />
   at UNet.Manager.Database.DbConnection.ExecuteSelect(String sql) in D:\UNet.Manager\Database\DbConnection.cs:line 90


Any ideas?

Regards,
Gareth.
GeneralRe: Concatting 2 fields in SQL from 2 tables Pin
pmarfleet19-Jan-08 4:56
pmarfleet19-Jan-08 4:56 
GeneralRe: Concatting 2 fields in SQL from 2 tables Pin
Gareth H19-Jan-08 6:31
Gareth H19-Jan-08 6:31 
GeneralRe: Concatting 2 fields in SQL from 2 tables Pin
Gareth H19-Jan-08 6:38
Gareth H19-Jan-08 6:38 
GeneralRe: Concatting 2 fields in SQL from 2 tables Pin
pmarfleet19-Jan-08 9:11
pmarfleet19-Jan-08 9:11 
GeneralRe: Concatting 2 fields in SQL from 2 tables Pin
Gareth H19-Jan-08 9:59
Gareth H19-Jan-08 9:59 
GeneralRe: Concatting 2 fields in SQL from 2 tables Pin
pmarfleet19-Jan-08 10:08
pmarfleet19-Jan-08 10:08 
Questionhow to display percentage of compeletion of bacup sql server in my app ? Pin
hdv21219-Jan-08 3:45
hdv21219-Jan-08 3:45 
AnswerRe: how to display percentage of compeletion of bacup sql server in my app ? Pin
pmarfleet19-Jan-08 5:00
pmarfleet19-Jan-08 5:00 
GeneralRe: how to display percentage of compeletion of bacup sql server in my app ? Pin
hdv21219-Jan-08 5:22
hdv21219-Jan-08 5:22 
GeneralRe: how to display percentage of compeletion of bacup sql server in my app ? Pin
pmarfleet19-Jan-08 5:53
pmarfleet19-Jan-08 5:53 
AnswerRe: how to display percentage of compeletion of bacup sql server in my app ? Pin
Tamer Oz19-Jan-08 19:04
Tamer Oz19-Jan-08 19:04 
GeneralCSV file Import to SQL Server Database and Validation From C#.Net Pin
Nisha_Aadhi19-Jan-08 1:11
Nisha_Aadhi19-Jan-08 1:11 
GeneralRe: CSV file Import to SQL Server Database and Validation From C#.Net Pin
pmarfleet19-Jan-08 4:58
pmarfleet19-Jan-08 4:58 
Generalmessage box in windows service Pin
Ahmad Adnan19-Jan-08 1:05
Ahmad Adnan19-Jan-08 1:05 
GeneralRe: message box in windows service Pin
jhaga19-Jan-08 4:50
professionaljhaga19-Jan-08 4:50 
Generaltwo RegEx questions: subpatterns, performance Pin
peterchen19-Jan-08 0:29
peterchen19-Jan-08 0:29 
GeneralRe: two RegEx questions: subpatterns, performance Pin
jhaga19-Jan-08 4:34
professionaljhaga19-Jan-08 4:34 

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.