Click here to Skip to main content
15,919,121 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with LIKE ' *xxx* ' Pin
Colin Angus Mackay28-May-05 22:08
Colin Angus Mackay28-May-05 22:08 
GeneralRe: Problem with LIKE ' *xxx* ' Pin
Luis Alonso Ramos29-May-05 12:52
Luis Alonso Ramos29-May-05 12:52 
GeneralRe: Problem with LIKE ' *xxx* ' Pin
Colin Angus Mackay28-May-05 22:47
Colin Angus Mackay28-May-05 22:47 
GeneralRe: Problem with LIKE ' *xxx* ' Pin
quocpt29-May-05 1:53
quocpt29-May-05 1:53 
GeneralReading from a text file and then storing into the database Pin
mhmo28-May-05 9:44
mhmo28-May-05 9:44 
GeneralRe: Reading from a text file and then storing into the database Pin
Robert Rohde28-May-05 9:53
Robert Rohde28-May-05 9:53 
GeneralRe: Reading from a text file and then storing into the database Pin
mhmo28-May-05 19:14
mhmo28-May-05 19:14 
GeneralRe: Reading from a text file and then storing into the database Pin
Robert Rohde28-May-05 20:31
Robert Rohde28-May-05 20:31 
1. Have a look here. Its in VB.Net and originally meant for ASP. But the same techniques apply for C# windows applications. The sample there could give you a good start. As you want to load data into the database and not read the only really difference is that you will have to use ExecuteQuery instead of ExecuteReader.

2. When using parameterized queries you will have to insert the data line by line. Thus there is no real reason to load more than line at a time into memory. In order to increase you could read your data in one thread (storing many lines in memory) and writing them to the database in another thread. This could improve performance in certain situations, but is also a bit advanced, so you probably should stick to the line by line handling.
GeneralRe: Reading from a text file and then storing into the database Pin
Uri Lavi28-May-05 10:04
Uri Lavi28-May-05 10:04 
GeneralRe: Reading from a text file and then storing into the database Pin
mhmo28-May-05 21:07
mhmo28-May-05 21:07 
GeneralRe: Reading from a text file and then storing into the database Pin
Uri Lavi28-May-05 23:09
Uri Lavi28-May-05 23:09 
GeneralURGENT URGENT Pin
falandas28-May-05 2:46
falandas28-May-05 2:46 
GeneralRe: URGENT URGENT Pin
WillemM28-May-05 5:20
WillemM28-May-05 5:20 
GeneralRe: URGENT URGENT Pin
Christian Graus28-May-05 11:52
protectorChristian Graus28-May-05 11:52 
Generalenum overloading Pin
hasansheik28-May-05 2:28
hasansheik28-May-05 2:28 
GeneralRe: enum overloading Pin
Robert Rohde28-May-05 3:17
Robert Rohde28-May-05 3:17 
GeneralRe: enum overloading Pin
S. Senthil Kumar28-May-05 19:03
S. Senthil Kumar28-May-05 19:03 
QuestionSql or Xml ? Pin
MoustafaS28-May-05 2:27
MoustafaS28-May-05 2:27 
AnswerRe: Sql or Xml ? Pin
Robert Rohde28-May-05 3:27
Robert Rohde28-May-05 3:27 
GeneralRe: Sql or Xml ? Pin
MoustafaS28-May-05 3:57
MoustafaS28-May-05 3:57 
GeneralDataGrid DoubleClick Event Pin
Afief28-May-05 2:26
Afief28-May-05 2:26 
GeneralRe: DataGrid DoubleClick Event Pin
hasansheik28-May-05 2:31
hasansheik28-May-05 2:31 
GeneralRe: DataGrid DoubleClick Event Pin
Afief28-May-05 2:58
Afief28-May-05 2:58 
QuestionHow can write sync sensittivity to live video Pin
Member 110343128-May-05 1:05
Member 110343128-May-05 1:05 
GeneralDial Up program Pin
ksanju100028-May-05 0:50
ksanju100028-May-05 0:50 

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.