Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programming for synchronization of local database with remote server database. Pin
Mycroft Holmes18-Feb-09 21:39
professionalMycroft Holmes18-Feb-09 21:39 
GeneralRe: Programming for synchronization of local database with remote server database. Pin
Ennis Ray Lynch, Jr.19-Feb-09 2:53
Ennis Ray Lynch, Jr.19-Feb-09 2:53 
GeneralRe: Programming for synchronization of local database with remote server database. Pin
Mycroft Holmes19-Feb-09 10:24
professionalMycroft Holmes19-Feb-09 10:24 
Questiongmail authentication using c# windows application Pin
techismart18-Feb-09 5:07
techismart18-Feb-09 5:07 
AnswerRe: gmail authentication using c# windows application Pin
benjymous18-Feb-09 5:27
benjymous18-Feb-09 5:27 
QuestionC# SqlCeReader weirdness Pin
J-Cop18-Feb-09 4:51
J-Cop18-Feb-09 4:51 
AnswerRe: C# SqlCeReader weirdness Pin
Dave Kreskowiak18-Feb-09 5:01
mveDave Kreskowiak18-Feb-09 5:01 
GeneralRe: C# SqlCeReader weirdness Pin
J-Cop18-Feb-09 21:14
J-Cop18-Feb-09 21:14 
Hi! The datatype in the DB is int and I am only doing a Select query. Only way I could get the Read() method to work was to typecast the int to a nChar. The problem table with an int is FilterObjectType. So I am not trying to insert anything here.

Well, no I haven't changed datatypes anywhere, only this query to the DB.

BTW, I am quering a Sql Server Ce .sdf DB in this case. Not the Express here (was a bit confused when writing prev mess).

This is the only code I have written for this so far is this:

SqlCeConnection conn = new SqlCeConnection();
conn.ConnectionString = "Data Source=todos.sdf;Persist Security Info=False";
SqlCeCommand comm = new SqlCeCommand("SELECT OfficialRegNo, TransponderID FROM BasicAnimal UNION SELECT  CAST(FilterObjectType AS nchar), Caption FROM Filter", conn);
conn.Open();
SqlCeDataReader myReader = comm.ExecuteReader();

do
{
Console.WriteLine("\t{0}\t{1}", myReader.GetName(0), myReader.GetName(1));
               
while (myReader.Read())    //<--- SqlCeException here
Console.WriteLine("\t{0}\t{1}", myReader.GetString(0), myReader.GetString(1));

} while (myReader.NextResult());

myReader.Close();
conn.Close();

AnswerRe: C# SqlCeReader weirdness Pin
Ennis Ray Lynch, Jr.18-Feb-09 5:22
Ennis Ray Lynch, Jr.18-Feb-09 5:22 
QuestionSorting a BindingList Pin
MatthysDT18-Feb-09 4:33
MatthysDT18-Feb-09 4:33 
AnswerRe: Sorting a BindingList Pin
Nuri Ismail18-Feb-09 4:42
Nuri Ismail18-Feb-09 4:42 
GeneralRe: Sorting a BindingList Pin
MatthysDT18-Feb-09 6:01
MatthysDT18-Feb-09 6:01 
AnswerRe: Sorting a BindingList Pin
Nuri Ismail18-Feb-09 6:57
Nuri Ismail18-Feb-09 6:57 
JokeRe: Sorting a BindingList Pin
led mike18-Feb-09 7:31
led mike18-Feb-09 7:31 
GeneralRe: Sorting a BindingList Pin
MatthysDT18-Feb-09 19:39
MatthysDT18-Feb-09 19:39 
GeneralRe: Sorting a BindingList Pin
MatthysDT19-Feb-09 1:32
MatthysDT19-Feb-09 1:32 
GeneralRe: Sorting a BindingList Pin
Rafique Sheikh3-Nov-10 14:03
Rafique Sheikh3-Nov-10 14:03 
GeneralRe: Sorting a BindingList Pin
MatthysDT3-Nov-10 20:48
MatthysDT3-Nov-10 20:48 
GeneralRe: Sorting a BindingList Pin
Rafique Sheikh4-Nov-10 5:58
Rafique Sheikh4-Nov-10 5:58 
AnswerHow to use binding list order by Pin
Dravidian_Knight23-Aug-11 21:00
Dravidian_Knight23-Aug-11 21:00 
GeneralRe: How to use binding list order by Pin
MatthysDT23-Aug-11 21:32
MatthysDT23-Aug-11 21:32 
Questionsending data over tcp Pin
Mubeen.asim18-Feb-09 4:00
Mubeen.asim18-Feb-09 4:00 
GeneralRe: sending data over tcp [modified] Pin
Kristian Sixhøj18-Feb-09 4:17
Kristian Sixhøj18-Feb-09 4:17 
GeneralRe: sending data over tcp Pin
Mubeen.asim18-Feb-09 7:05
Mubeen.asim18-Feb-09 7:05 
GeneralRe: sending data over tcp Pin
Kristian Sixhøj18-Feb-09 7:09
Kristian Sixhøj18-Feb-09 7:09 

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.